From 4bcc4570253a48e3a6133cfb5b14536ed25fbd14 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 25 Feb 2022 20:29:29 +0000 Subject: [PATCH] --- ayanova/src/api/dash-registry.js | 10 +- ayanova/src/components/dash-base.vue | 4 +- .../dash-labor-hours-personal-bar.vue | 400 ++++++++++++++++++ ayanova/src/views/home-dashboard.vue | 2 + 4 files changed, 412 insertions(+), 4 deletions(-) create mode 100644 ayanova/src/components/dash-labor-hours-personal-bar.vue diff --git a/ayanova/src/api/dash-registry.js b/ayanova/src/api/dash-registry.js index 2457a7dc..a5b8ded4 100644 --- a/ayanova/src/api/dash-registry.js +++ b/ayanova/src/api/dash-registry.js @@ -64,7 +64,15 @@ export default { singleOnly: false, settings: { customTitle: null, dateRange: "*thismonth*", unit: "day" } }, - + { + id: "dash-labor-hours-personal-bar", + roles: [role.Tech, role.TechRestricted], + title: "Labor hours - bar", + type: "GzDashLaborHoursPersonalBar", + scheduleableUserOnly: true, + singleOnly: false, + settings: { customTitle: null, dateRange: "*thismonth*", unit: "day" } + }, { id: "TestBarWidgetCountByUserType", roles: [ diff --git a/ayanova/src/components/dash-base.vue b/ayanova/src/components/dash-base.vue index d5af0f31..67ab2c1c 100644 --- a/ayanova/src/components/dash-base.vue +++ b/ayanova/src/components/dash-base.vue @@ -134,9 +134,7 @@ -
- default slot for settings -
+
+ + + + + + + diff --git a/ayanova/src/views/home-dashboard.vue b/ayanova/src/views/home-dashboard.vue index 85ef92ca..16022f4b 100644 --- a/ayanova/src/views/home-dashboard.vue +++ b/ayanova/src/views/home-dashboard.vue @@ -89,10 +89,12 @@ import GzDashTodayScheduledWo from "../components/dash-today-scheduled-wo.vue"; import GzDashTodayReminders from "../components/dash-today-reminders.vue"; import GzDashTodayReviews from "../components/dash-today-reviews.vue"; import GzDashLaborHoursPersonal from "../components/dash-labor-hours-personal.vue"; +import GzDashLaborHoursPersonalBar from "../components/dash-labor-hours-personal-bar.vue"; export default { components: { GzDashLaborHoursPersonal, + GzDashLaborHoursPersonalBar, GzDashTestBarWidgetCountByUserType, GzDashTestLineWidgetMonthlyTotalPrice, GzDashTodayScheduledWo,