Browse Source

dataPresentation moved into dataConfig object

pull/1/head
Jonathan Cobb 5 years ago
parent
commit
f846a5135f
2 changed files with 5 additions and 5 deletions
  1. +2
    -2
      src/account/AppPage.vue
  2. +3
    -3
      src/account/AppSitePage.vue

+ 2
- 2
src/account/AppPage.vue View File

@@ -17,7 +17,7 @@
</thead>
<tbody>
<tr v-for="site in sites">
<td nowrap="nowrap" v-if="app.dataPresentation === 'site' || app.dataPresentation === 'app_and_site'">
<td nowrap="nowrap" v-if="app.dataConfig.presentation === 'site' || app.dataConfig.presentation === 'app_and_site'">
<router-link :to="{ path: '/app/'+ appId + '/site/' + site.name }">{{site.name}}</router-link>
</td>
<td v-else>{{site.name}}</td>
@@ -43,7 +43,7 @@
{{messages.message_no_sites}}
</div>

<div v-if="app.dataPresentation === 'app' || app.dataPresentation === 'app_and_site'">
<div v-if="app.dataConfig.presentation === 'app' || app.dataConfig.presentation === 'app_and_site'">
<h2>{{app.name}} {{messages.table_title_app_data}}</h2>
<div v-if="appData && appData.length > 0">
<table border="1">


+ 3
- 3
src/account/AppSitePage.vue View File

@@ -3,7 +3,7 @@
<em v-if="loading()">{{messages.loading_app_site}}</em>

<div v-if="app && site">
<div v-if="app && site && app.dataPresentation === 'site' || app.dataPresentation === 'app_and_site'">
<div v-if="app && site && app.dataConfig.presentation === 'site' || app.dataConfig.presentation === 'app_and_site'">
<h2 v-if="app && site">{{app.name}} - {{site.name}} {{messages.table_title_app_site_data}}</h2>
<div v-if="appData && appData.length > 0">
<table border="1">
@@ -133,7 +133,7 @@
if (d !== null) this.dataLoaded = true;
},
app (a) {
if (!this.dataLoaded && (a.dataPresentation === 'site' || a.dataPresentation === 'app_and_site')) {
if (!this.dataLoaded && a.dataConfig && (a.dataConfig.presentation === 'site' || a.dataConfig.presentation === 'app_and_site')) {
console.log('watch.app: loading AppSiteData...');
this.getAppSiteDataByUserId({
userId: this.user.uuid,
@@ -145,7 +145,7 @@
}
},
site (s) {
if (!this.dataLoaded && this.app && (this.app.dataPresentation === 'site' || this.app.dataPresentation === 'app_and_site')) {
if (!this.dataLoaded && this.app && this.app.dataConfig && (this.app.dataConfig.presentation === 'site' || this.app.dataConfig.presentation === 'app_and_site')) {
console.log('watch.site: loading AppSiteData...');
this.getAppSiteDataByUserId({
userId: this.user.uuid,


Loading…
Cancel
Save