From 7cd7e0e140da2d048ad3addfac4bceb72ab5e89a Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Thu, 5 Mar 2020 18:17:30 -0500 Subject: [PATCH] improve app display, hide sites if only 'all sites', show config views even if no data views --- src/account/AppPage.vue | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/account/AppPage.vue b/src/account/AppPage.vue index 398dcff..ff51d10 100644 --- a/src/account/AppPage.vue +++ b/src/account/AppPage.vue @@ -4,8 +4,10 @@ {{messages.loading_app}}
-

{{messages['app_'+app.name+'_name']}} {{messages.table_title_app_sites}}

-
+

+ {{messages['app_'+app.name+'_name']}} {{messages.table_title_app_sites}} +

+
@@ -143,16 +145,17 @@ watch: { app (a) { if (a && a.dataConfig && a.dataConfig.presentation - && (a.dataConfig.presentation === 'app' || a.dataConfig.presentation === 'app_and_site') - && a.dataConfig.views && a.dataConfig.views.length && a.dataConfig.views.length > 0) { - const allViews = a.dataConfig.views; - const appViews = []; - for (let i=0; i 0) { + const allViews = a.dataConfig.views; + const appViews = []; + for (let i = 0; i < allViews.length; i++) { + if (allViews[i].presentation && allViews[i].presentation === 'app') { + appViews.push(allViews[i]); + } } + this.appViews = appViews; } - this.appViews = appViews; if (a.dataConfig.configViews) { const allConfigViews = a.dataConfig.configViews;