Merge branch 'master' into renovate/eslint-plugin-vue-7.x
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
konrad 2020-10-02 16:40:21 +00:00
commit 9ee277cab0
2 changed files with 9 additions and 7 deletions

View File

@ -65,13 +65,12 @@ export default {
type: Number,
required: true,
},
initialAssignees: {
type: Array,
default: () => [],
},
disabled: {
default: false,
},
value: {
type: Array,
},
},
data() {
return {
@ -83,19 +82,22 @@ export default {
}
},
created() {
this.assignees = this.initialAssignees
this.assignees = this.value
this.listUserService = new ListUserService()
this.newAssignee = new UserModel()
this.taskAssigneeService = new TaskAssigneeService()
},
watch: {
initialAssignees(newVal) {
value(newVal) {
this.assignees = newVal
},
},
methods: {
addAssignee(user) {
this.$store.dispatch('tasks/addAssignee', {user: user, taskId: this.taskId})
.then(() => {
this.$emit('input', this.assignees)
})
.catch(e => {
this.error(e, this)
})

View File

@ -32,10 +32,10 @@
</div>
<edit-assignees
:disabled="!canWrite"
:initial-assignees="task.assignees"
:list-id="task.listId"
:task-id="task.id"
ref="assignees"
v-model="task.assignees"
/>
</div>
<div class="column" v-if="activeFields.priority">