File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,8 @@ Component[OptionsPattern[]] := With[{
220220 let timer;
221221
222222 this.on('Saving', async (data) => {
223+ if (timer) return;
224+
223225 timer = setTimeout(() => {
224226 spinner = document.createElementNS("http://www.w3.org/2000/svg", "svg");
225227 spinner.setAttribute('class', "ml-auto mr-auto w-4 h-4 text-gray-200 animate-spin dark:text-gray-600 fill-teal-600");
@@ -235,6 +237,8 @@ Component[OptionsPattern[]] := With[{
235237 });
236238
237239 this.on('Saved', async (data) => {
240+ if (api) api?.blockWindow(false);
241+
238242 if (timer) {
239243 clearTimeout(timer);
240244 timer = undefined;
@@ -246,7 +250,7 @@ Component[OptionsPattern[]] := With[{
246250 saveBtn.firstChild.classList.remove('hidden');
247251 saveBtn.disabled = false;
248252
249- if (api) api?.blockWindow(false);
253+
250254 });
251255
252256 this.on('WSRequest', () => {
You can’t perform that action at this time.
0 commit comments