mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-03 06:02:17 +00:00
(js) Avoid saving an empty calendar name
This commit is contained in:
@@ -106,6 +106,9 @@
|
||||
this.editMode = false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.revertEditing(folder);
|
||||
}
|
||||
};
|
||||
|
||||
this.confirmDelete = function () {
|
||||
|
||||
@@ -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