mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
removed unnecessary deleteDialog helper, delete dialog now uses tap-i18n
This commit is contained in:
parent
9940d635b4
commit
4a20208d95
6 changed files with 13 additions and 13 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
template(name="checklists")
|
template(name="checklists")
|
||||||
h2 {{_ 'checklists'}}
|
h2 {{_ 'checklists'}}
|
||||||
if deleteDialog
|
if toggleDeleteDialog.get
|
||||||
.board-overlay#card-details-overlay
|
.board-overlay#card-details-overlay
|
||||||
+checklistDeleteDialog(checklist = checklistToDelete)
|
+checklistDeleteDialog(checklist = checklistToDelete)
|
||||||
|
|
||||||
|
|
@ -38,7 +38,7 @@ template(name="checklistDeleteDialog")
|
||||||
p
|
p
|
||||||
i(class="fa fa-exclamation-triangle" aria-hidden="true")
|
i(class="fa fa-exclamation-triangle" aria-hidden="true")
|
||||||
p
|
p
|
||||||
| Are you sure you want to delete
|
| {{_ 'confirm-checklist-delete-dialog'}}
|
||||||
span {{checklist.title}}
|
span {{checklist.title}}
|
||||||
| ?
|
| ?
|
||||||
.js-checklist-delete-buttons
|
.js-checklist-delete-buttons
|
||||||
|
|
|
||||||
|
|
@ -114,10 +114,6 @@ BlazeComponent.extendComponent({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
deleteDialog() {
|
|
||||||
return this.toggleDeleteDialog.get();
|
|
||||||
},
|
|
||||||
|
|
||||||
deleteItem() {
|
deleteItem() {
|
||||||
const checklist = this.currentData().checklist;
|
const checklist = this.currentData().checklist;
|
||||||
const item = this.currentData().item;
|
const item = this.currentData().item;
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,10 @@ textarea.js-add-checklist-item, textarea.js-edit-checklist-item
|
||||||
float: left;
|
float: left;
|
||||||
width: 60%
|
width: 60%
|
||||||
margin-top: 0
|
margin-top: 0
|
||||||
margin-left: 16%
|
margin-left: 13%
|
||||||
padding-bottom: 2%
|
padding-bottom: 2%
|
||||||
|
padding-left: 3%
|
||||||
|
padding-right: 3%
|
||||||
z-index: 17
|
z-index: 17
|
||||||
border-radius: 3px
|
border-radius: 3px
|
||||||
|
|
||||||
|
|
@ -55,7 +57,6 @@ textarea.js-add-checklist-item, textarea.js-edit-checklist-item
|
||||||
margin-top: 3%
|
margin-top: 3%
|
||||||
width: 100%
|
width: 100%
|
||||||
text-align: center
|
text-align: center
|
||||||
|
|
||||||
span
|
span
|
||||||
font-weight: bold
|
font-weight: bold
|
||||||
|
|
||||||
|
|
@ -66,10 +67,10 @@ textarea.js-add-checklist-item, textarea.js-edit-checklist-item
|
||||||
position: relative
|
position: relative
|
||||||
padding: left 2% right 2%
|
padding: left 2% right 2%
|
||||||
.confirm-checklist-delete
|
.confirm-checklist-delete
|
||||||
margin-left: 16%
|
margin-left: 12%
|
||||||
float: left
|
float: left
|
||||||
.toggle-delete-checklist-dialog
|
.toggle-delete-checklist-dialog
|
||||||
margin-right: 16%
|
margin-right: 12%
|
||||||
float: right
|
float: right
|
||||||
|
|
||||||
#card-details-overlay
|
#card-details-overlay
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,7 @@
|
||||||
"comment-only": "Comment only",
|
"comment-only": "Comment only",
|
||||||
"comment-only-desc": "Can comment on cards only.",
|
"comment-only-desc": "Can comment on cards only.",
|
||||||
"computer": "Computer",
|
"computer": "Computer",
|
||||||
|
"confirm-checklist-delete-dialog": "Are you sure you want to delete",
|
||||||
"copy-card-link-to-clipboard": "Copy card link to clipboard",
|
"copy-card-link-to-clipboard": "Copy card link to clipboard",
|
||||||
"copyCardPopup-title": "Copy Card",
|
"copyCardPopup-title": "Copy Card",
|
||||||
"create": "Create",
|
"create": "Create",
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,7 @@
|
||||||
"comment-only": "Comment only",
|
"comment-only": "Comment only",
|
||||||
"comment-only-desc": "Can comment on cards only.",
|
"comment-only-desc": "Can comment on cards only.",
|
||||||
"computer": "Computer",
|
"computer": "Computer",
|
||||||
|
"confirm-checklist-delete-dialog": "Are you sure you want to delete",
|
||||||
"copy-card-link-to-clipboard": "Copy card link to clipboard",
|
"copy-card-link-to-clipboard": "Copy card link to clipboard",
|
||||||
"copyCardPopup-title": "Copy Card",
|
"copyCardPopup-title": "Copy Card",
|
||||||
"create": "Create",
|
"create": "Create",
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,7 @@
|
||||||
"comment-only": "Somente comentários",
|
"comment-only": "Somente comentários",
|
||||||
"comment-only-desc": "Pode comentar apenas em cartões.",
|
"comment-only-desc": "Pode comentar apenas em cartões.",
|
||||||
"computer": "Computador",
|
"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",
|
"copy-card-link-to-clipboard": "Copiar link do cartão para a área de transferência",
|
||||||
"copyCardPopup-title": "Copy Card",
|
"copyCardPopup-title": "Copy Card",
|
||||||
"create": "Criar",
|
"create": "Criar",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue