-
Notifications
You must be signed in to change notification settings - Fork 78
Add skill ui to new task page #1054
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
Conversation
e8a3ff3 to
11f51e3
Compare
11f51e3 to
38872df
Compare
| .then((task) => this.transitionToRoute('project.tasks.task', get(task, 'number'))) | ||
| .catch((payload) => this._handleTaskSaveError(payload)); | ||
| }, | ||
| deselectSkill(skill) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spacing here.
app/controllers/project/tasks/new.js
Outdated
| let unsavedTaskSkills = get(this, 'unsavedTaskSkills'); | ||
| let promises = unsavedTaskSkills.map((skill) => this._createTaskSkill(skill, task)); | ||
| return RSVP.all(promises).then(() => task); | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this below _create... to keep alpha?
| }, | ||
|
|
||
| contains(skill) { | ||
| includes(skill) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like renaming to includes here.
38872df to
c438bfa
Compare
c438bfa to
cf7fbed
Compare
What's in this PR?
This PR adds basic skill assignment UI to the new task page. It works basically like the UI on the edit page, except the
task-skillrecords are actually created after the task is saved.Styling is not final, but can be dealt with in another PR.
The section listing the project skills for quick adding is also not there. It can be added with #1052
This should be reviewed and merged after reviewing and merging #1045
I also made a code change in the x-skill service layer. I renamed
.containsto.includes, reason being.containsis being deprecated on ember arrays. Since for the task new page, we use a plain ember array instead of a service, it would make sense for the interface to match.References
Progress on: #1046