diff --git a/ayanova/src/api/dash-registry.js b/ayanova/src/api/dash-registry.js index 06ba8201..6c702d64 100644 --- a/ayanova/src/api/dash-registry.js +++ b/ayanova/src/api/dash-registry.js @@ -35,7 +35,7 @@ export default { title: "Tech only dash item" }, dashSalesOnlyTest: { - roles: [role.SalesFull, role.TechLSalesLimitedimited], + roles: [role.SalesFull, role.SalesLimited], title: "Sales only dash item" } }, @@ -45,7 +45,7 @@ export default { for (const [key, value] of Object.entries(this.registry)) { // console.log(`key: ${key}, value: ${JSON.stringify(value)}`); if (authorizationroles.hasRole(value.roles)) { - ret.push(); + ret.push({ id: key, title: value.title }); } } return ret; diff --git a/ayanova/src/views/home-dashboard.vue b/ayanova/src/views/home-dashboard.vue index deb62323..a58aa974 100644 --- a/ayanova/src/views/home-dashboard.vue +++ b/ayanova/src/views/home-dashboard.vue @@ -50,6 +50,7 @@ export default { }); }, created() { + console.log(DashRegistry.availableItems()); this.availableItems = DashRegistry.availableItems(); }, methods: {