Skip to content

Commit 3df4b1f

Browse files
committed
feat: show loading
doesnt use a spinner modal but idk how to really, it doesnt really work fsr
1 parent 37f3b09 commit 3df4b1f

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

addons/goboscript/sb2gs.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ export const sb2gsWhlName = "sb2gs-2.0.0-py3-none-any.whl";
88
* @param addon {UserscriptAddon}
99
* @param console
1010
* @param pyodide
11-
* @param decompileButton {HTMLButtonElement}
1211
* @returns {Promise<void>}
1312
*/
14-
export async function decompile(addon, console, pyodide, decompileButton) {
13+
export async function decompile(addon, console, pyodide) {
1514
const vm = addon.tab.traps.vm;
1615
/**@type {Blob}*/
1716
const project = await vm.saveProjectSb3();

addons/goboscript/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,11 @@
2121
vertical-align: middle;
2222
content: "";
2323
}
24+
25+
.sa-decompile-button.waiting:before {
26+
pointer-events: none;
27+
}
28+
29+
.sa-decompile-button.loading:before {
30+
opacity: 0.6;
31+
}

0 commit comments

Comments
 (0)