mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
fix esling
This commit is contained in:
@@ -110,6 +110,7 @@
|
|||||||
return invite.text.length > 0 && !invite.valid;
|
return invite.text.length > 0 && !invite.valid;
|
||||||
});
|
});
|
||||||
if (filteredInvites.length > 0) return true;
|
if (filteredInvites.length > 0) return true;
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
inviter () {
|
inviter () {
|
||||||
return this.user.profile.name;
|
return this.user.profile.name;
|
||||||
|
|||||||
@@ -79,18 +79,21 @@ export default {
|
|||||||
return this.$t('assignedToYouAndMembers', {userCount: assignedUsersLength - 1});
|
return this.$t('assignedToYouAndMembers', {userCount: assignedUsersLength - 1});
|
||||||
} else if (this.userIsAssigned) {
|
} else if (this.userIsAssigned) {
|
||||||
return this.$t('youAreAssigned');
|
return this.$t('youAreAssigned');
|
||||||
} else if (assignedUsersLength === 0) {
|
} else { // if (assignedUsersLength === 0) {
|
||||||
return this.$t('taskIsUnassigned');
|
return this.$t('taskIsUnassigned');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
userIsManager () {
|
userIsManager () {
|
||||||
if (this.group && (this.group.leader.id === this.user._id || this.group.managers[this.user._id])) return true;
|
if (this.group && (this.group.leader.id === this.user._id || this.group.managers[this.user._id])) return true;
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
approvalRequested () {
|
approvalRequested () {
|
||||||
if (this.task.approvals && this.task.approvals.length === 1 || this.task.group && this.task.group.approval && this.task.group.approval.requested) return true;
|
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 () {
|
multipleApprovalsRequested () {
|
||||||
if (this.task.approvals && this.task.approvals.length > 1) return true;
|
if (this.task.approvals && this.task.approvals.length > 1) return true;
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -73,6 +73,8 @@
|
|||||||
return this.name;
|
return this.name;
|
||||||
} else if (this.user && this.user.profile) {
|
} else if (this.user && this.user.profile) {
|
||||||
return this.user.profile.name;
|
return this.user.profile.name;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
level () {
|
level () {
|
||||||
|
|||||||
Reference in New Issue
Block a user