This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<v-row v-if="formState.ready">
|
||||
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
||||
<v-col
|
||||
v-for="(item, i) in availableItems"
|
||||
v-for="(item, i) in effectiveView"
|
||||
:key="i"
|
||||
class="d-flex child-flex"
|
||||
cols="12"
|
||||
@@ -122,9 +122,7 @@ export default {
|
||||
let allowedView = savedView.filter(z =>
|
||||
availableItems.find(m => m.id == z.id)
|
||||
);
|
||||
//TODO: Vet the view, ensure only items that match availableItems are allowed through
|
||||
//TODO: set effectiveView based on savedView, availableItems
|
||||
// vm.obj = JSON.parse(res.data.view);
|
||||
|
||||
vm.effectiveView = allowedView;
|
||||
//modify the menu as necessary
|
||||
generateMenu(vm);
|
||||
@@ -148,8 +146,6 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
savedView: [],
|
||||
availableItems: [],
|
||||
effectiveView: [],
|
||||
formState: {
|
||||
ready: false,
|
||||
|
||||
Reference in New Issue
Block a user