client config rename for frontend

This commit is contained in:
2026-03-10 16:17:18 +08:00
parent 858858ab48
commit da93c2e4a4
3 changed files with 10 additions and 10 deletions

View File

@@ -24,11 +24,11 @@
} }
} }
const openClientConfigManager = async () => { const openClientConfig = async () => {
try { try {
await commands.openClientConfigManager(); await commands.openClientConfig();
} catch (error) { } catch (error) {
console.error("Failed to open client config manager", error); console.error("Failed to open client config", error);
} }
}; };
@@ -73,7 +73,7 @@
<button class="btn" class:btn-disabled={signingOut} onclick={handleSignOut}> <button class="btn" class:btn-disabled={signingOut} onclick={handleSignOut}>
{signingOut ? "Signing out..." : "Sign out"} {signingOut ? "Signing out..." : "Sign out"}
</button> </button>
<button class="btn btn-outline" onclick={openClientConfigManager}> <button class="btn btn-outline" onclick={openClientConfig}>
Advanced options Advanced options
</button> </button>
</div> </div>

View File

@@ -55,9 +55,9 @@
class="btn btn-outline" class="btn btn-outline"
onclick={async () => { onclick={async () => {
try { try {
await commands.openClientConfigManager(); await commands.openClientConfig();
} catch (err) { } catch (err) {
errorMessage = `Failed to open config manager: ${err}`; errorMessage = `Failed to open config: ${err}`;
} }
}} }}
> >

View File

@@ -57,11 +57,11 @@
form.username = ""; form.username = "";
}; };
const openClientConfigManager = async () => { const openClientConfig = async () => {
try { try {
await commands.openClientConfigManager(); await commands.openClientConfig();
} catch (error) { } catch (error) {
console.error("Failed to open client config manager", error); console.error("Failed to open client config", error);
} }
}; };
</script> </script>
@@ -154,7 +154,7 @@
</button> </button>
<button <button
class="btn btn-link p-0 btn-sm text-base-content w-max" class="btn btn-link p-0 btn-sm text-base-content w-max"
onclick={openClientConfigManager} onclick={openClientConfig}
> >
Advanced options Advanced options
</button> </button>