summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAngelo Gallarello <angelo.gallarell@gmail.com>2018-10-07 18:19:51 +0200
committerAngelo Gallarello <angelo.gallarell@gmail.com>2018-10-07 18:19:51 +0200
commit6931b88e4013754a7b03205a9916b9e607224f48 (patch)
treeec2a5786817a35a74f3a898bbb4860edf816c121 /client
parentd0735e1d8edb4f88ede9f103e692eac7d41484f9 (diff)
downloadwekan-6931b88e4013754a7b03205a9916b9e607224f48.tar.gz
wekan-6931b88e4013754a7b03205a9916b9e607224f48.tar.bz2
wekan-6931b88e4013754a7b03205a9916b9e607224f48.zip
Prevent rules with no name
Diffstat (limited to 'client')
-rw-r--r--client/components/rules/rulesMain.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/client/components/rules/rulesMain.js b/client/components/rules/rulesMain.js
index feb46d74..3e871c69 100644
--- a/client/components/rules/rulesMain.js
+++ b/client/components/rules/rulesMain.js
@@ -34,9 +34,11 @@ BlazeComponent.extendComponent({
'click .js-goto-trigger' (event) {
event.preventDefault();
const ruleTitle = this.find('#ruleTitle').value;
- this.find('#ruleTitle').value = '';
- this.ruleName.set(ruleTitle);
- this.setTrigger();
+ if(ruleTitle != undefined && ruleTitle != ''){
+ this.find('#ruleTitle').value = '';
+ this.ruleName.set(ruleTitle);
+ this.setTrigger();
+ }
},
'click .js-goto-action' (event) {
event.preventDefault();