WIP(assignment): change to object style

to do--let assignment API accept an array
This commit is contained in:
SabreCat
2021-11-30 16:32:01 -06:00
parent fa99458ca4
commit a495db8480
5 changed files with 39 additions and 28 deletions

View File

@@ -71,7 +71,7 @@
v-else
class="svg-icon check"
:class="{
'display-check-icon': task.completed || task.group.approval.requested,
'display-check-icon': task.completed,
[controlClass.checkbox]: true,
}"
v-html="icons.check"
@@ -1040,7 +1040,7 @@ export default {
},
isOpenTask () {
if (!this.isGroupTask) return false;
if (this.task.group.assignedUsers.length > 0) return false;
if (this.task.group.assignedUsers) return false;
return true;
},
showTaskLockIcon () {
@@ -1052,7 +1052,9 @@ export default {
return true;
}
if (this.isOpenTask) return false;
if (this.task.group.assignedUsers.indexOf(this.user._id) !== -1) return false;
if (this.task.group.assignedUsers && this.task.group.assignedUsers[this.user._id]) {
return false;
}
}
return true;
},