Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable saving nameless assignment (connect #3132) #3133

Merged
merged 3 commits into from
Jul 9, 2019

Conversation

kymni
Copy link
Contributor

@kymni kymni commented Jul 8, 2019

Before the PR (what is the issue or what needed to be done)

Save option available even when no assignment name is set resulting in a sometimes empty assignments

The solution

Add validation for assignment name

Screenshots (if appropriate)

Checklist

  • Connect the issue
  • Test plan
  • Copyright header
  • Code formatting
  • Documentation

@kymni kymni requested a review from valllllll2000 July 8, 2019 12:27
@@ -64,7 +64,9 @@ FLOW.AssignmentsListView = FLOW.ReactComponentView.extend(observe({
assignmentEdit(action, assignmentId) {
switch (action) {
case 'new': {
const newAssignment = FLOW.store.createRecord(FLOW.SurveyAssignment, {});
const newAssignment = FLOW.store.createRecord(FLOW.SurveyAssignment, {
name: Ember.String.loc('_new_question_please_change_name'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why question? is the string identical? if so maybe we should rename it something more meaningful?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

Copy link
Contributor

@valllllll2000 valllllll2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see comment

@valllllll2000 valllllll2000 merged commit d2ab54d into develop Jul 9, 2019
@valllllll2000 valllllll2000 deleted the issue/3132-disable-save-nameless-assignment branch July 9, 2019 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants