mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Assignee field like Jira #2452 , in progress.
When there is one selected assignee on card, don't show + button for adding more assignees, because there can only be one assignee. Thanks to xet7 !
This commit is contained in:
parent
22083787f9
commit
3cf09efb13
2 changed files with 11 additions and 2 deletions
|
|
@ -79,8 +79,9 @@ template(name="cardDetails")
|
||||||
+userAvatarAssignee(userId=this cardId=../_id)
|
+userAvatarAssignee(userId=this cardId=../_id)
|
||||||
| {{! XXX Hack to hide syntaxic coloration /// }}
|
| {{! XXX Hack to hide syntaxic coloration /// }}
|
||||||
if canModifyCard
|
if canModifyCard
|
||||||
a.assignee.add-assignee.card-details-item-add-button.js-add-assignees(title="{{_ 'assignee'}}")
|
unless assigneeSelected
|
||||||
i.fa.fa-plus
|
a.assignee.add-assignee.card-details-item-add-button.js-add-assignees(title="{{_ 'assignee'}}")
|
||||||
|
i.fa.fa-plus
|
||||||
|
|
||||||
.card-details-item.card-details-item-labels
|
.card-details-item.card-details-item-labels
|
||||||
h3.card-details-item-title {{_ 'labels'}}
|
h3.card-details-item-title {{_ 'labels'}}
|
||||||
|
|
|
||||||
|
|
@ -364,6 +364,14 @@ Template.cardDetails.helpers({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
assigneeSelected() {
|
||||||
|
if (this.getAssignees().length === 0) {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
memberType() {
|
memberType() {
|
||||||
const user = Users.findOne(this.userId);
|
const user = Users.findOne(this.userId);
|
||||||
return user && user.isBoardAdmin() ? 'admin' : 'normal';
|
return user && user.isBoardAdmin() ? 'admin' : 'normal';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue