Fixed rule allows

This commit is contained in:
Angelo Gallarello 2018-09-12 00:52:29 +02:00
parent 1f5f429fc4
commit 34b37116cf
25 changed files with 345 additions and 260 deletions

View file

@ -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();
},
}];