(js) Avoid saving an empty calendar name

This commit is contained in:
Francis Lachapelle
2019-08-07 16:33:51 -04:00
parent a7b85c3360
commit 361a84e7b5
3 changed files with 9 additions and 0 deletions
@@ -107,6 +107,9 @@
if (this.inputElement.disabled)
return;
if (this.inputElement.value.length === 0)
this.revertEditing();
this.calendar.name = this.inputElement.value;
this.inputElement.disabled = true;
this.calendar.$rename()