From 92bf534a77be3230137d2fd5d2c95df8056a84e3 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 25 Jul 2022 10:34:44 -0700 Subject: [PATCH] ui: fix settings bug --- plugins/core/package-lock.json | 4 ++-- plugins/core/package.json | 2 +- plugins/core/ui/src/interfaces/Settings.vue | 7 ++++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/plugins/core/package-lock.json b/plugins/core/package-lock.json index fa68b005a..6232dbcef 100644 --- a/plugins/core/package-lock.json +++ b/plugins/core/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/core", - "version": "0.1.18", + "version": "0.1.19", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/core", - "version": "0.1.18", + "version": "0.1.19", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { diff --git a/plugins/core/package.json b/plugins/core/package.json index 3d2aa1f84..27fe12698 100644 --- a/plugins/core/package.json +++ b/plugins/core/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/core", - "version": "0.1.18", + "version": "0.1.19", "description": "Scrypted Core plugin. Provides the UI, websocket, and engine.io APIs.", "author": "Scrypted", "license": "Apache-2.0", diff --git a/plugins/core/ui/src/interfaces/Settings.vue b/plugins/core/ui/src/interfaces/Settings.vue index 02705b95a..bdcb8950c 100644 --- a/plugins/core/ui/src/interfaces/Settings.vue +++ b/plugins/core/ui/src/interfaces/Settings.vue @@ -107,9 +107,10 @@ export default { value: setting, })); if (!this.usingDefaultSettingsGroupName) { - if (this.settingsGroupName === 'extensions' && !this.availableMixins.length) - this.usingDefaultSettingsGroupName = true; - if (!this.settingsGroups[this.settingsGroupName]) + // make sure the selected settings tab still exists + if (this.settingsGroupName === 'extensions') + this.usingDefaultSettingsGroupName = !this.availableMixins.length; + else if (!this.settingsGroups[this.settingsGroupName]) this.usingDefaultSettingsGroupName = true; } if (this.usingDefaultSettingsGroupName) {