summaryrefslogtreecommitdiffstats
path: root/client/components/lists
diff options
context:
space:
mode:
authoramadilsons <joao.amado.95@gmail.com>2017-09-28 16:59:53 +0200
committeramadilsons <joao.amado.95@gmail.com>2017-09-28 16:59:53 +0200
commitc9c650664fd92f0924afb4548a50c7bca167d955 (patch)
tree304125a6c8eae4494af0847577dccd2eddd2b0bf /client/components/lists
parenteb945f26a3be316fb2ae4452d6db45a11f8b91d4 (diff)
downloadwekan-c9c650664fd92f0924afb4548a50c7bca167d955.tar.gz
wekan-c9c650664fd92f0924afb4548a50c7bca167d955.tar.bz2
wekan-c9c650664fd92f0924afb4548a50c7bca167d955.zip
basic frontend setup, List model updated with wipLimit field
Diffstat (limited to 'client/components/lists')
-rw-r--r--client/components/lists/listHeader.jade12
-rw-r--r--client/components/lists/listHeader.js6
2 files changed, 18 insertions, 0 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'),
});