mirror of
https://github.com/koush/scrypted.git
synced 2026-07-10 08:50:31 +01:00
ui: fix settings bug
This commit is contained in:
4
plugins/core/package-lock.json
generated
4
plugins/core/package-lock.json
generated
@@ -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": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user