From b9f2f954405c52c53d79710717497e177cf1b9cb Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 29 Oct 2020 21:45:46 +0000 Subject: [PATCH] --- ayanova/src/api/dash-registry.js | 2 ++ ayanova/src/views/home-dashboard.vue | 20 +++++++------------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/ayanova/src/api/dash-registry.js b/ayanova/src/api/dash-registry.js index feba97ef..06ba8201 100644 --- a/ayanova/src/api/dash-registry.js +++ b/ayanova/src/api/dash-registry.js @@ -41,11 +41,13 @@ export default { }, availableItems() { let ret = []; + for (const [key, value] of Object.entries(this.registry)) { // console.log(`key: ${key}, value: ${JSON.stringify(value)}`); if (authorizationroles.hasRole(value.roles)) { ret.push(); } } + return ret; } }; diff --git a/ayanova/src/views/home-dashboard.vue b/ayanova/src/views/home-dashboard.vue index 72e4518b..deb62323 100644 --- a/ayanova/src/views/home-dashboard.vue +++ b/ayanova/src/views/home-dashboard.vue @@ -1,7 +1,7 @@