summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/components/lists/listHeader.jade12
-rw-r--r--client/components/lists/listHeader.js6
-rw-r--r--i18n/en-GB.i18n.json4
-rw-r--r--i18n/en.i18n.json2
-rw-r--r--i18n/pt-BR.i18n.json4
-rw-r--r--models/lists.js5
6 files changed, 31 insertions, 2 deletions
diff --git a/client/components/lists/listHeader.jade b/client/components/lists/listHeader.jade
index 68336320..67fbe958 100644
--- a/client/components/lists/listHeader.jade
+++ b/client/components/lists/listHeader.jade
@@ -6,6 +6,11 @@ template(name="listHeader")
h2.list-header-name(
class="{{#if currentUser.isBoardMember}}js-open-inlined-form is-editable{{/if}}")
= title
+ if hasWipLimit
+ span.wip-limit
+ | (
+ = wipLimit
+ | )
if showCardsCountForList cards.count
= cards.count
span.lowercase
@@ -34,6 +39,9 @@ template(name="listActionPopup")
li: a.js-select-cards {{_ 'list-select-cards'}}
hr
ul.pop-over-list
+ li: a.js-set-wip-limit {{#if hasWipLimit}}{{_ 'edit-wip-limit'}}{{else}}{{_ 'set-wip-limit'}}{{/if}}
+ hr
+ ul.pop-over-list
li: a.js-close-list {{_ 'archive-list'}}
hr
ul.pop-over-list
@@ -64,3 +72,7 @@ template(name="listDeletePopup")
unless archived
p {{_ "list-delete-suggest-archive"}}
button.js-confirm.negate.full(type="submit") {{_ 'delete'}}
+
+template(name="setWipLimitPopup")
+ p {{_ 'set-wip-limit'}}
+ input(type="number")
diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js
index 7fe42884..47fddd27 100644
--- a/client/components/lists/listHeader.js
+++ b/client/components/lists/listHeader.js
@@ -21,6 +21,11 @@ BlazeComponent.extendComponent({
return count > this.limitToShowCardsCount();
},
+ hasWipLimit() {
+ return null;
+ //return this.currentData().wipLimit ? true : false;
+ },
+
events() {
return [{
'click .js-open-list-menu': Popup.open('listAction'),
@@ -61,6 +66,7 @@ Template.listActionPopup.events({
this.archive();
Popup.close();
},
+ 'click .js-set-wip-limit': Popup.open('setWipLimit'),
'click .js-more': Popup.open('listMore'),
});
diff --git a/i18n/en-GB.i18n.json b/i18n/en-GB.i18n.json
index 8db041a5..2884ea68 100644
--- a/i18n/en-GB.i18n.json
+++ b/i18n/en-GB.i18n.json
@@ -167,6 +167,7 @@
"edit": "Edit",
"edit-avatar": "Change Avatar",
"edit-profile": "Edit Profile",
+ "edit-wip-limit": "Edit WIP Limit",
"editCardStartDatePopup-title": "Change start date",
"editCardDueDatePopup-title": "Change due date",
"editLabelPopup-title": "Change Label",
@@ -306,6 +307,7 @@
"save": "Save",
"search": "Search",
"select-color": "Select Color",
+ "set-wip-limit": "Set WIP Limit",
"shortcut-assign-self": "Assign yourself to current card",
"shortcut-autocomplete-emoji": "Autocomplete emoji",
"shortcut-autocomplete-members": "Autocomplete members",
@@ -391,4 +393,4 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change"
-} \ No newline at end of file
+}
diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json
index 64a720db..0ccace57 100644
--- a/i18n/en.i18n.json
+++ b/i18n/en.i18n.json
@@ -167,6 +167,7 @@
"edit": "Edit",
"edit-avatar": "Change Avatar",
"edit-profile": "Edit Profile",
+ "edit-wip-limit": "Edit WIP Limit",
"editCardStartDatePopup-title": "Change start date",
"editCardDueDatePopup-title": "Change due date",
"editLabelPopup-title": "Change Label",
@@ -306,6 +307,7 @@
"save": "Save",
"search": "Search",
"select-color": "Select Color",
+ "set-wip-limit": "Set WIP Limit",
"shortcut-assign-self": "Assign yourself to current card",
"shortcut-autocomplete-emoji": "Autocomplete emoji",
"shortcut-autocomplete-members": "Autocomplete members",
diff --git a/i18n/pt-BR.i18n.json b/i18n/pt-BR.i18n.json
index 1ea99b76..e40d7ed0 100644
--- a/i18n/pt-BR.i18n.json
+++ b/i18n/pt-BR.i18n.json
@@ -167,6 +167,7 @@
"edit": "Editar",
"edit-avatar": "Alterar Avatar",
"edit-profile": "Editar Perfil",
+ "edit-wip-limit": "Editar Limite WIP",
"editCardStartDatePopup-title": "Altera data de início",
"editCardDueDatePopup-title": "Altera data fim",
"editLabelPopup-title": "Alterar Etiqueta",
@@ -306,6 +307,7 @@
"save": "Salvar",
"search": "Buscar",
"select-color": "Selecionar Cor",
+ "set-wip-limit": "Definir Limite WIP",
"shortcut-assign-self": "Atribuir a si o cartão atual",
"shortcut-autocomplete-emoji": "Autocompletar emoji",
"shortcut-autocomplete-members": "Preenchimento automático de membros",
@@ -391,4 +393,4 @@
"no": "Não",
"accounts": "Contas",
"accounts-allowEmailChange": "Permitir Mudança de Email"
-} \ No newline at end of file
+}
diff --git a/models/lists.js b/models/lists.js
index d9a5b8e2..80accefb 100644
--- a/models/lists.js
+++ b/models/lists.js
@@ -42,6 +42,11 @@ Lists.attachSchema(new SimpleSchema({
}
},
},
+
+ wipLimit: {
+ type: SimpleSchema.Integer,
+ optional: true,
+ },
}));
Lists.allow({