mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Fixed rule allows
This commit is contained in:
parent
1f5f429fc4
commit
34b37116cf
25 changed files with 345 additions and 260 deletions
|
|
@ -1,28 +1,24 @@
|
|||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
this.rulesListVar = new ReactiveVar(true);
|
||||
this.rulesTriggerVar = new ReactiveVar(false);
|
||||
this.rulesActionVar = new ReactiveVar(false);
|
||||
this.rulesCurrentTab = new ReactiveVar("rulesList")
|
||||
this.ruleName = new ReactiveVar("");
|
||||
this.triggerVar = new ReactiveVar();
|
||||
this.ruleId = new ReactiveVar();
|
||||
},
|
||||
|
||||
setTrigger() {
|
||||
this.rulesListVar.set(false);
|
||||
this.rulesTriggerVar.set(true);
|
||||
this.rulesActionVar.set(false);
|
||||
this.rulesCurrentTab.set("trigger")
|
||||
},
|
||||
|
||||
setRulesList() {
|
||||
this.rulesListVar.set(true);
|
||||
this.rulesTriggerVar.set(false);
|
||||
this.rulesActionVar.set(false);
|
||||
this.rulesCurrentTab.set("rulesList")
|
||||
},
|
||||
|
||||
setAction() {
|
||||
this.rulesListVar.set(false);
|
||||
this.rulesTriggerVar.set(false);
|
||||
this.rulesActionVar.set(true);
|
||||
this.rulesCurrentTab.set("action")
|
||||
},
|
||||
setRuleDetails() {
|
||||
this.rulesCurrentTab.set("ruleDetails")
|
||||
},
|
||||
|
||||
events() {
|
||||
|
|
@ -48,6 +44,10 @@ BlazeComponent.extendComponent({
|
|||
event.preventDefault();
|
||||
this.setRulesList();
|
||||
},
|
||||
'click .js-goto-details'(event) {
|
||||
event.preventDefault();
|
||||
this.setRuleDetails();
|
||||
},
|
||||
|
||||
|
||||
}];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue