diff options
author | amadilsons <joao.amado.95@gmail.com> | 2017-09-29 14:13:36 +0200 |
---|---|---|
committer | amadilsons <joao.amado.95@gmail.com> | 2017-09-29 14:13:36 +0200 |
commit | 4a20208d95134ba26d2e9fdba3d1e7a4329eb451 (patch) | |
tree | 440cd5d547c887424cf7cb37846efdb9ae2417d1 /client | |
parent | 9940d635b447d98f60d31181e2fc15610d05b969 (diff) | |
download | wekan-4a20208d95134ba26d2e9fdba3d1e7a4329eb451.tar.gz wekan-4a20208d95134ba26d2e9fdba3d1e7a4329eb451.tar.bz2 wekan-4a20208d95134ba26d2e9fdba3d1e7a4329eb451.zip |
removed unnecessary deleteDialog helper, delete dialog now uses tap-i18n
Diffstat (limited to 'client')
-rw-r--r-- | client/components/cards/checklists.jade | 4 | ||||
-rw-r--r-- | client/components/cards/checklists.js | 6 | ||||
-rw-r--r-- | client/components/cards/checklists.styl | 9 |
3 files changed, 8 insertions, 11 deletions
diff --git a/client/components/cards/checklists.jade b/client/components/cards/checklists.jade index 559dd83e..d6e6d736 100644 --- a/client/components/cards/checklists.jade +++ b/client/components/cards/checklists.jade @@ -1,6 +1,6 @@ template(name="checklists") h2 {{_ 'checklists'}} - if deleteDialog + if toggleDeleteDialog.get .board-overlay#card-details-overlay +checklistDeleteDialog(checklist = checklistToDelete) @@ -38,7 +38,7 @@ template(name="checklistDeleteDialog") p i(class="fa fa-exclamation-triangle" aria-hidden="true") p - | Are you sure you want to delete + | {{_ 'confirm-checklist-delete-dialog'}} span {{checklist.title}} | ? .js-checklist-delete-buttons diff --git a/client/components/cards/checklists.js b/client/components/cards/checklists.js index 014b72a4..030711bc 100644 --- a/client/components/cards/checklists.js +++ b/client/components/cards/checklists.js @@ -113,11 +113,7 @@ BlazeComponent.extendComponent({ this.toggleDeleteDialog.set(false); } }, - - deleteDialog() { - return this.toggleDeleteDialog.get(); - }, - + deleteItem() { const checklist = this.currentData().checklist; const item = this.currentData().item; diff --git a/client/components/cards/checklists.styl b/client/components/cards/checklists.styl index d3e8c427..d4776397 100644 --- a/client/components/cards/checklists.styl +++ b/client/components/cards/checklists.styl @@ -45,8 +45,10 @@ textarea.js-add-checklist-item, textarea.js-edit-checklist-item float: left; width: 60% margin-top: 0 - margin-left: 16% + margin-left: 13% padding-bottom: 2% + padding-left: 3% + padding-right: 3% z-index: 17 border-radius: 3px @@ -55,7 +57,6 @@ textarea.js-add-checklist-item, textarea.js-edit-checklist-item margin-top: 3% width: 100% text-align: center - span font-weight: bold @@ -66,10 +67,10 @@ textarea.js-add-checklist-item, textarea.js-edit-checklist-item position: relative padding: left 2% right 2% .confirm-checklist-delete - margin-left: 16% + margin-left: 12% float: left .toggle-delete-checklist-dialog - margin-right: 16% + margin-right: 12% float: right #card-details-overlay |