Pārlūkot izejas kodu

some apps do not have config views

pull/1/head
Jonathan Cobb pirms 4 gadiem
vecāks
revīzija
47b7bc1d05
1 mainītis faili ar 9 papildinājumiem un 7 dzēšanām
  1. +9
    -7
      src/account/AppPage.vue

+ 9
- 7
src/account/AppPage.vue Parādīt failu

@@ -58,7 +58,7 @@
</div> </div>
</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> <h2>{{messages['app_'+app.name+'_name']}} {{messages.table_title_app_config_views}}</h2>
<div> <div>
<table border="1"> <table border="1">
@@ -153,14 +153,16 @@
} }
this.appViews = appViews; 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) { site (s) {


Notiek ielāde…
Atcelt
Saglabāt