Browse Source

some apps do not have config views

pull/1/head
Jonathan Cobb 4 years ago
parent
commit
47b7bc1d05
1 changed files with 9 additions and 7 deletions
  1. +9
    -7
      src/account/AppPage.vue

+ 9
- 7
src/account/AppPage.vue View File

@@ -58,7 +58,7 @@
</div>
</div>

<div v-if="appConfigViews && appConfigViews.length > 0">
<div v-if="typeof appConfigViews !== 'undefined' && appConfigViews !== null && appConfigViews.length > 0">
<h2>{{messages['app_'+app.name+'_name']}} {{messages.table_title_app_config_views}}</h2>
<div>
<table border="1">
@@ -153,14 +153,16 @@
}
this.appViews = appViews;

const allConfigViews = a.dataConfig.configViews;
const appConfigViews = [];
for (let i=0; i<allConfigViews.length; i++) {
if (typeof allConfigViews[i].root !== 'undefined' && allConfigViews[i].root !== null && allConfigViews[i].root === true) {
appConfigViews.push(allConfigViews[i]);
if (a.dataConfig.configViews) {
const allConfigViews = a.dataConfig.configViews;
const appConfigViews = [];
for (let i=0; i<allConfigViews.length; i++) {
if (typeof allConfigViews[i].root !== 'undefined' && allConfigViews[i].root !== null && allConfigViews[i].root === true) {
appConfigViews.push(allConfigViews[i]);
}
}
this.appConfigViews = appConfigViews;
}
this.appConfigViews = appConfigViews;
}
},
site (s) {


Loading…
Cancel
Save