From 259aa1be7b6ac0794463b18da9919ea3b7ab5996 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 2 Nov 2020 23:25:16 +0000 Subject: [PATCH] --- ayanova/src/api/dash-registry.js | 30 +++++----------- .../dash-test-day-calendar-widget.vue | 36 +++++++++++++++++++ .../dash-test-list-widgets-priciest.vue | 2 +- ayanova/src/views/home-dashboard.vue | 4 ++- 4 files changed, 49 insertions(+), 23 deletions(-) create mode 100644 ayanova/src/components/dash-test-day-calendar-widget.vue diff --git a/ayanova/src/api/dash-registry.js b/ayanova/src/api/dash-registry.js index d339bafc..70df6588 100644 --- a/ayanova/src/api/dash-registry.js +++ b/ayanova/src/api/dash-registry.js @@ -36,22 +36,15 @@ export default { type: "GzDashTestLineWidgetMonthlyTotalPrice" }, { - id: "dashBizOnlyTest", - roles: [role.BizAdminFull, role.BizAdminLimited], - title: "Biz only test item", - type: "GzDashBase" - }, - { - id: "dashTechOnlyTest", - roles: [role.TechFull, role.TechLimited], - title: "Tech only test item", - type: "GzDashBase" - }, - { - id: "dashSalesOnlyTest", - roles: [role.SalesFull, role.SalesLimited], - title: "Sales only test item", - type: "GzDashBase" + id: "TestDayCalendarWidget", + roles: [ + role.BizAdminFull, + role.BizAdminLimited, + role.SalesFull, + role.SalesLimited + ], + title: "Widget calendar", + type: "GzDashTestDayCalendarWidget" } ], availableItems() { @@ -62,11 +55,6 @@ export default { ret.push({ id: item.id, title: item.title, type: item.type }); } } - // for (const [key, value] of Object.entries(this.registry)) { - // if (authorizationroles.hasRole(value.roles)) { - // ret.push({ id: key, title: value.title, type: value.type }); - // } - // } return ret; } }; diff --git a/ayanova/src/components/dash-test-day-calendar-widget.vue b/ayanova/src/components/dash-test-day-calendar-widget.vue new file mode 100644 index 00000000..fc56745d --- /dev/null +++ b/ayanova/src/components/dash-test-day-calendar-widget.vue @@ -0,0 +1,36 @@ + + diff --git a/ayanova/src/components/dash-test-list-widgets-priciest.vue b/ayanova/src/components/dash-test-list-widgets-priciest.vue index 1c2ccb11..dc2f5033 100644 --- a/ayanova/src/components/dash-test-list-widgets-priciest.vue +++ b/ayanova/src/components/dash-test-list-widgets-priciest.vue @@ -9,7 +9,7 @@ diff --git a/ayanova/src/views/home-dashboard.vue b/ayanova/src/views/home-dashboard.vue index aa6735c4..8efe1744 100644 --- a/ayanova/src/views/home-dashboard.vue +++ b/ayanova/src/views/home-dashboard.vue @@ -86,13 +86,15 @@ import GzDashBase from "../components/dash-base.vue"; import GzDashTestListWidgetsPriciest from "../components/dash-test-list-widgets-priciest.vue"; import GzDashTestBarWidgetCountByUserType from "../components/dash-test-bar-widget-count-by-usertype.vue"; import GzDashTestLineWidgetMonthlyTotalPrice from "../components/dash-test-line-widget-monthly-total-price.vue"; +import GzDashTestDayCalendarWidget from "../components/dash-test-day-calendar-widget.vue"; export default { components: { GzDashBase, GzDashTestListWidgetsPriciest, GzDashTestBarWidgetCountByUserType, - GzDashTestLineWidgetMonthlyTotalPrice + GzDashTestLineWidgetMonthlyTotalPrice, + GzDashTestDayCalendarWidget }, beforeCreate() { window.$gz.eventBus.$emit("menu-change", {