mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
Added back button
This commit is contained in:
parent
ebd884e654
commit
f19948f993
6 changed files with 36 additions and 3 deletions
|
|
@ -14,5 +14,9 @@ template(name="ruleDetails")
|
||||||
div.trigger-content
|
div.trigger-content
|
||||||
div.trigger-text
|
div.trigger-text
|
||||||
= action
|
= action
|
||||||
|
div.rules-back
|
||||||
|
button.js-goback
|
||||||
|
i.fa.fa-chevron-left
|
||||||
|
| {{{_ 'r-back'}}}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -32,6 +32,17 @@
|
||||||
display: inline-block
|
display: inline-block
|
||||||
float: right
|
float: right
|
||||||
margin: auto
|
margin: auto
|
||||||
|
.rules-back
|
||||||
|
display: block
|
||||||
|
overflow: auto
|
||||||
|
margin-top: 15px
|
||||||
|
margin-bottom: 5px
|
||||||
|
button
|
||||||
|
display: inline-block
|
||||||
|
float: right
|
||||||
|
margin: auto
|
||||||
|
margin-right:14px
|
||||||
|
|
||||||
.flex
|
.flex
|
||||||
display: -webkit-box
|
display: -webkit-box
|
||||||
display: -moz-box
|
display: -moz-box
|
||||||
|
|
|
||||||
|
|
@ -22,4 +22,8 @@ template(name="rulesActions")
|
||||||
else if ($eq currentActions.get 'checklist')
|
else if ($eq currentActions.get 'checklist')
|
||||||
+checklistActions(ruleName=data.ruleName triggerVar=data.triggerVar)
|
+checklistActions(ruleName=data.ruleName triggerVar=data.triggerVar)
|
||||||
else if ($eq currentActions.get 'mail')
|
else if ($eq currentActions.get 'mail')
|
||||||
+mailActions(ruleName=data.ruleName triggerVar=data.triggerVar)
|
+mailActions(ruleName=data.ruleName triggerVar=data.triggerVar)
|
||||||
|
div.rules-back
|
||||||
|
button.js-goback
|
||||||
|
i.fa.fa-chevron-left
|
||||||
|
| {{{_ 'r-back'}}}
|
||||||
|
|
@ -46,6 +46,15 @@ BlazeComponent.extendComponent({
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
this.setRulesList();
|
this.setRulesList();
|
||||||
},
|
},
|
||||||
|
'click .js-goback' (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
if(this.rulesCurrentTab.get() === 'trigger' || this.rulesCurrentTab.get() === 'ruleDetails' ){
|
||||||
|
this.setRulesList();
|
||||||
|
}
|
||||||
|
if(this.rulesCurrentTab.get() === 'action'){
|
||||||
|
this.setTrigger();
|
||||||
|
}
|
||||||
|
},
|
||||||
'click .js-goto-details' (event) {
|
'click .js-goto-details' (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const rule = this.currentData();
|
const rule = this.currentData();
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,8 @@ template(name="rulesTriggers")
|
||||||
else if showCardTrigger.get
|
else if showCardTrigger.get
|
||||||
+cardTriggers
|
+cardTriggers
|
||||||
else if showChecklistTrigger.get
|
else if showChecklistTrigger.get
|
||||||
+checklistTriggers
|
+checklistTriggers
|
||||||
|
div.rules-back
|
||||||
|
button.js-goback
|
||||||
|
i.fa.fa-chevron-left
|
||||||
|
| {{{_ 'r-back'}}}
|
||||||
|
|
@ -607,5 +607,6 @@
|
||||||
"r-d-check-of-list": "of checklist",
|
"r-d-check-of-list": "of checklist",
|
||||||
"r-d-add-checklist": "Add checklist",
|
"r-d-add-checklist": "Add checklist",
|
||||||
"r-d-remove-checklist": "Remove checklist",
|
"r-d-remove-checklist": "Remove checklist",
|
||||||
"r-when-a-card-is-moved": "When a card is moved to another list"
|
"r-when-a-card-is-moved": "When a card is moved to another list",
|
||||||
|
"r-back": "Back"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue