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 {
await commands.openClientConfigManager();
await commands.openClientConfig();
} 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}>
{signingOut ? "Signing out..." : "Sign out"}
</button>
<button class="btn btn-outline" onclick={openClientConfigManager}>
<button class="btn btn-outline" onclick={openClientConfig}>
Advanced options
</button>
</div>

View File

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

View File

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