Skip to content

Commit 9c7f590

Browse files
committed
saving icon fix
1 parent 1354491 commit 9c7f590

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Components/ExtendedTopbar.wlx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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', () => {

0 commit comments

Comments
 (0)