Skip to content

Commit

Permalink
create Discussion without inviting member async-labs#132
Browse files Browse the repository at this point in the history
  • Loading branch information
tima101 committed Oct 6, 2020
1 parent cb3b2a1 commit 1696e55
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions app/components/discussions/CreateDiscussionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ class CreateDiscussionForm extends React.Component<Props, State> {
return;
}

if (!memberIds || memberIds.length < 1) {
notify('Please assign at least one person to this Discussion.');
return;
}
// if (!memberIds || memberIds.length < 1) {
// notify('Please assign at least one person to this Discussion.');
// return;
// }

if (!notificationType) {
notify('Please select notification type.');
Expand Down
8 changes: 4 additions & 4 deletions app/components/discussions/EditDiscussionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ class EditDiscussionForm extends React.Component<Props, State> {
memberIds.push(discussion.store.currentUser._id);
}

if (!memberIds || memberIds.length < 1) {
notify('Please assign at least one person to this Issue.');
return;
}
// if (!memberIds || memberIds.length < 1) {
// notify('Please assign at least one person to this Discussion.');
// return;
// }

if (!notificationType) {
notify('Please select notification type.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class EditDiscussionForm extends React.Component<Props, State> {
}

if (!memberIds || memberIds.length < 1) {
notify('Please assign at least one person to this Issue.');
notify('Please assign at least one person to this Discussion.');
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class EditDiscussionForm extends React.Component<Props, State> {
}

if (!memberIds || memberIds.length < 1) {
notify('Please assign at least one person to this Issue.');
notify('Please assign at least one person to this Discussion.');
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class EditDiscussionForm extends React.Component<Props, State> {
}

if (!memberIds || memberIds.length < 1) {
notify('Please assign at least one person to this Issue.');
notify('Please assign at least one person to this Discussion.');
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class EditDiscussionForm extends React.Component<Props, State> {
}

if (!memberIds || memberIds.length < 1) {
notify('Please assign at least one person to this Issue.');
notify('Please assign at least one person to this Discussion.');
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class EditDiscussionForm extends React.Component<Props, State> {
}

if (!memberIds || memberIds.length < 1) {
notify('Please assign at least one person to this Issue.');
notify('Please assign at least one person to this Discussion.');
return;
}

Expand Down

0 comments on commit 1696e55

Please sign in to comment.