mirror of
https://github.com/wekan/wekan.git
synced 2026-01-04 00:28:49 +01:00
added i18n translation, minor fix
This commit is contained in:
parent
214fe6a61f
commit
f77da76c68
6 changed files with 16 additions and 7 deletions
|
|
@ -76,7 +76,7 @@ template(name="setWipLimitPopup")
|
|||
#js-wip-limit-edit
|
||||
lable {{_ 'set-wip-limit-value'}}
|
||||
ul.pop-over-list
|
||||
li: a.js-enable-wip-limit Enable WIP Limit
|
||||
li: a.js-enable-wip-limit {{_ 'enable-wip-limit'}}
|
||||
if isWipLimitEnabled
|
||||
i.fa.fa-check
|
||||
if isWipLimitEnabled
|
||||
|
|
@ -87,6 +87,6 @@ template(name="setWipLimitPopup")
|
|||
|
||||
template(name="wipLimitErrorPopup")
|
||||
.wip-limit-invalid
|
||||
p The number of tasks in this list is higher than the WIP limit you've defined.
|
||||
p Please move some tasks out of this list, or set a higher WIP limit.
|
||||
p {{_ 'wipLimitErrorPopup-dialog-pt1'}}
|
||||
p {{_ 'wipLimitErrorPopup-dialog-pt2'}}
|
||||
button.full.js-back-view(type="submit") {{_ 'cancel'}}
|
||||
|
|
|
|||
|
|
@ -93,10 +93,10 @@ BlazeComponent.extendComponent({
|
|||
enableWipLimit() {
|
||||
const list = Template.currentData();
|
||||
// Prevent user from using previously stored wipLimit.value if it is less than the current number of cards in the list
|
||||
if(list.getWipLimit() && !list.wipLimit.enabled && list.wipLimit.value < list.cards().count()){
|
||||
if(list.getWipLimit() && !list.getWipLimit('enabled') && list.getWipLimit('value') < list.cards().count()){
|
||||
list.setWipLimit(list.cards().count());
|
||||
}
|
||||
Meteor.call('enableWipLimit', Template.currentData()._id);
|
||||
Meteor.call('enableWipLimit', list._id);
|
||||
},
|
||||
|
||||
isWipLimitEnabled() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue