fix esling

This commit is contained in:
Matteo Pagliazzi
2019-10-01 16:31:13 +02:00
parent 33b26a69b8
commit 4faa06f37d
3 changed files with 7 additions and 1 deletions

View File

@@ -110,6 +110,7 @@
return invite.text.length > 0 && !invite.valid;
});
if (filteredInvites.length > 0) return true;
return false;
},
inviter () {
return this.user.profile.name;

View File

@@ -79,18 +79,21 @@ export default {
return this.$t('assignedToYouAndMembers', {userCount: assignedUsersLength - 1});
} else if (this.userIsAssigned) {
return this.$t('youAreAssigned');
} else if (assignedUsersLength === 0) {
} else { // if (assignedUsersLength === 0) {
return this.$t('taskIsUnassigned');
}
},
userIsManager () {
if (this.group && (this.group.leader.id === this.user._id || this.group.managers[this.user._id])) return true;
return false;
},
approvalRequested () {
if (this.task.approvals && this.task.approvals.length === 1 || this.task.group && this.task.group.approval && this.task.group.approval.requested) return true;
return false;
},
multipleApprovalsRequested () {
if (this.task.approvals && this.task.approvals.length > 1) return true;
return false;
},
},
methods: {

View File

@@ -73,6 +73,8 @@
return this.name;
} else if (this.user && this.user.profile) {
return this.user.profile.name;
} else {
return null;
}
},
level () {