mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-17 06:14:54 +00:00
(js) Avoid saving an empty calendar name
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user