diff --git a/src/common/managesieve.ui/editor/SieveEditor.js b/src/common/managesieve.ui/editor/SieveEditor.js index 40aa9f1bc2..f2dbe91a9a 100644 --- a/src/common/managesieve.ui/editor/SieveEditor.js +++ b/src/common/managesieve.ui/editor/SieveEditor.js @@ -98,8 +98,14 @@ document .querySelector("#sieve-editor-save") - .addEventListener("click", () => { - this.save(); + .addEventListener("click", async () => { + document + .querySelector("#sieve-editor-saving").classList.remove("d-none"); + + await this.save(); + + document + .querySelector("#sieve-editor-saving").classList.add("d-none"); }); document diff --git a/src/common/managesieve.ui/editor/editor.tpl b/src/common/managesieve.ui/editor/editor.tpl index 61cd06b6c6..88c8ab1249 100644 --- a/src/common/managesieve.ui/editor/editor.tpl +++ b/src/common/managesieve.ui/editor/editor.tpl @@ -18,8 +18,10 @@
- +