Browse Source

show config views on app page

pull/1/head
Jonathan Cobb 4 years ago
parent
commit
10df086e32
1 changed files with 26 additions and 1 deletions
  1. +26
    -1
      src/account/AppPage.vue

+ 26
- 1
src/account/AppPage.vue View File

@@ -57,6 +57,21 @@
</table>
</div>
</div>

<div v-if="appConfigViews && appConfigViews.length > 0">
<h2>{{messages['app_'+app.name+'_name']}} {{messages.table_title_app_config_views}}</h2>
<div>
<table border="1">
<tbody>
<tr v-for="view in appConfigViews">
<td nowrap="nowrap">
<router-link :to="{ path: '/app/'+ app.name + '/config/' + view.name }">{{messages['app_'+app.name+'_config_view_'+view.name]}}</router-link>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</template>
@@ -70,7 +85,8 @@
return {
user: util.currentUser(),
appId: null,
appViews: null
appViews: null,
appConfigViews: null
};
},
computed: {
@@ -136,6 +152,15 @@
}
}
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]);
}
}
this.appConfigViews = appConfigViews;
}
},
site (s) {


Loading…
Cancel
Save