* Don't show the reload button when editing profiles of another site

* Fix typo in the codebase
This commit is contained in:
Ingan121
2025-08-26 20:17:48 +09:00
parent 88f743d5a5
commit ca90cbac2a
2 changed files with 5 additions and 3 deletions

View File

@@ -447,9 +447,11 @@ async function applyConfig() {
// If Vineless is globally disabled, per-site enabled config is completely ignored
// Enable both global and per-site when switching the per-site one to enabled, if global was disabled
if (scope === "global" || (config.enabled && !await SettingsManager.getGlobalEnabled())) {
await SettingsManager.setGlobalEnalbed(config.enabled);
await SettingsManager.setGlobalEnabled(config.enabled);
}
if (!siteScopeLabel.dataset.hostOverride) {
reloadButton.classList.remove('hidden');
}
reloadButton.classList.remove('hidden');
updateIcon();
}

View File

@@ -408,7 +408,7 @@ export class SettingsManager {
return config.enabled;
}
static async setGlobalEnalbed(enabled) {
static async setGlobalEnabled(enabled) {
const config = await SettingsManager.getProfile("global");
config.enabled = enabled;
setIcon(`images/icon${enabled ? '' : '-disabled'}.png`);