From 012327ca37315403ad50374d39eb08a73d3a175c Mon Sep 17 00:00:00 2001 From: Dan Salvato Date: Thu, 8 Feb 2024 11:05:03 -0700 Subject: [PATCH] Force all add-on settings to display in simple view --- src/modules/main_menu/components/menu-container.vue | 3 +++ src/modules/main_menu/components/menu-page.vue | 3 +++ src/modules/main_menu/components/menu-tree.vue | 3 +++ src/std-components/tab-container.vue | 3 +++ 4 files changed, 12 insertions(+) diff --git a/src/modules/main_menu/components/menu-container.vue b/src/modules/main_menu/components/menu-container.vue index cd0a2dd1..16a2844e 100644 --- a/src/modules/main_menu/components/menu-container.vue +++ b/src/modules/main_menu/components/menu-container.vue @@ -62,6 +62,9 @@ export default { return true; if ( this.context.simple_view ) { + // Don't hide any add-on settings in simple view + if ( item.path && item.path.startsWith('Add-Ons') ) + return true; for(const key of ['tabs', 'contents', 'items']) if ( item[key] ) for(const thing of item[key]) diff --git a/src/modules/main_menu/components/menu-page.vue b/src/modules/main_menu/components/menu-page.vue index c379b851..ec74aacd 100644 --- a/src/modules/main_menu/components/menu-page.vue +++ b/src/modules/main_menu/components/menu-page.vue @@ -191,6 +191,9 @@ export default { return true; if ( this.context.simple_view ) { + // Don't hide any add-on settings in simple view + if ( item.path && item.path.startsWith('Add-Ons') ) + return true; for(const key of ['tabs', 'contents', 'items']) if ( item[key] ) for(const thing of item[key]) diff --git a/src/modules/main_menu/components/menu-tree.vue b/src/modules/main_menu/components/menu-tree.vue index 398838e0..20aa5f40 100644 --- a/src/modules/main_menu/components/menu-tree.vue +++ b/src/modules/main_menu/components/menu-tree.vue @@ -116,6 +116,9 @@ export default { return true; if ( this.context.simple_view ) { + // Don't hide any add-on settings in simple view + if ( item.path && item.path.startsWith('Add-Ons') ) + return true; for(const key of ['tabs', 'contents', 'items']) if ( item[key] ) for(const thing of item[key]) diff --git a/src/std-components/tab-container.vue b/src/std-components/tab-container.vue index 73769d6c..37ee896e 100644 --- a/src/std-components/tab-container.vue +++ b/src/std-components/tab-container.vue @@ -214,6 +214,9 @@ export default { return true; if ( this.context.simple_view ) { + // Don't hide any add-on settings in simple view + if ( item.path && item.path.startsWith('Add-Ons') ) + return true; for(const key of ['tabs', 'contents', 'items']) if ( item[key] ) for(const thing of item[key])