Explorar o código

removed unnecessary deleteDialog helper, delete dialog now uses tap-i18n

amadilsons %!s(int64=7) %!d(string=hai) anos
pai
achega
4a20208d95

+ 2 - 2
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

+ 1 - 5
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;

+ 5 - 4
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

+ 2 - 1
i18n/en-GB.i18n.json

@@ -146,6 +146,7 @@
     "comment-only": "Comment only",
     "comment-only-desc": "Can comment on cards only.",
     "computer": "Computer",
+    "confirm-checklist-delete-dialog": "Are you sure you want to delete",
     "copy-card-link-to-clipboard": "Copy card link to clipboard",
     "copyCardPopup-title": "Copy Card",
     "create": "Create",
@@ -391,4 +392,4 @@
     "no": "No",
     "accounts": "Accounts",
     "accounts-allowEmailChange": "Allow Email Change"
-}
+}

+ 1 - 0
i18n/en.i18n.json

@@ -146,6 +146,7 @@
     "comment-only": "Comment only",
     "comment-only-desc": "Can comment on cards only.",
     "computer": "Computer",
+    "confirm-checklist-delete-dialog": "Are you sure you want to delete",
     "copy-card-link-to-clipboard": "Copy card link to clipboard",
     "copyCardPopup-title": "Copy Card",
     "create": "Create",

+ 2 - 1
i18n/pt-BR.i18n.json

@@ -146,6 +146,7 @@
     "comment-only": "Somente comentários",
     "comment-only-desc": "Pode comentar apenas em cartões.",
     "computer": "Computador",
+    "confirm-checklist-delete-dialog": "Tem a certeza de que pretende eliminar",
     "copy-card-link-to-clipboard": "Copiar link do cartão para a área de transferência",
     "copyCardPopup-title": "Copy Card",
     "create": "Criar",
@@ -391,4 +392,4 @@
     "no": "Não",
     "accounts": "Contas",
     "accounts-allowEmailChange": "Permitir Mudança de Email"
-}
+}