mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(user-menu) hide load on error
This commit is contained in:
parent
f989880d48
commit
bba2f7b570
1 changed files with 2 additions and 2 deletions
|
|
@ -47,6 +47,8 @@ async function show() {
|
|||
const res = await fetch(`${CloudCmd.prefix}/api/v1/user-menu?dir=${dirPath}`);
|
||||
const [error, userMenu] = tryCatch(getUserMenu, await res.text());
|
||||
|
||||
Images.hide();
|
||||
|
||||
if (error)
|
||||
return Dialog.alert(`User menu error: ${error.message}`);
|
||||
|
||||
|
|
@ -74,8 +76,6 @@ async function show() {
|
|||
const afterShow = () => select.focus();
|
||||
const autoSize = true;
|
||||
|
||||
Images.hide();
|
||||
|
||||
CloudCmd.View.show([button, select], {
|
||||
autoSize,
|
||||
afterShow,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue