1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-07 14:50:56 +00:00

Force all add-on settings to display in simple view

This commit is contained in:
Dan Salvato 2024-02-08 11:05:03 -07:00
parent 584e4905f1
commit 012327ca37
4 changed files with 12 additions and 0 deletions

View file

@ -62,6 +62,9 @@ export default {
return true; return true;
if ( this.context.simple_view ) { 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']) for(const key of ['tabs', 'contents', 'items'])
if ( item[key] ) if ( item[key] )
for(const thing of item[key]) for(const thing of item[key])

View file

@ -191,6 +191,9 @@ export default {
return true; return true;
if ( this.context.simple_view ) { 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']) for(const key of ['tabs', 'contents', 'items'])
if ( item[key] ) if ( item[key] )
for(const thing of item[key]) for(const thing of item[key])

View file

@ -116,6 +116,9 @@ export default {
return true; return true;
if ( this.context.simple_view ) { 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']) for(const key of ['tabs', 'contents', 'items'])
if ( item[key] ) if ( item[key] )
for(const thing of item[key]) for(const thing of item[key])

View file

@ -214,6 +214,9 @@ export default {
return true; return true;
if ( this.context.simple_view ) { 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']) for(const key of ['tabs', 'contents', 'items'])
if ( item[key] ) if ( item[key] )
for(const thing of item[key]) for(const thing of item[key])