diff --git a/ayanova/src/api/dash-registry.js b/ayanova/src/api/dash-registry.js index 6c05dd0c..d389cc17 100644 --- a/ayanova/src/api/dash-registry.js +++ b/ayanova/src/api/dash-registry.js @@ -3,7 +3,6 @@ const role = authorizationroles.AUTHORIZATION_ROLES; export default { registry: [ { - id: "dash-today-reminders", roles: [ role.BizAdmin, role.BizAdminRestricted, @@ -25,7 +24,6 @@ export default { settings: {} }, { - id: "dash-today-reviews", roles: [ role.BizAdmin, role.BizAdminRestricted, @@ -47,7 +45,6 @@ export default { settings: {} }, { - id: "dash-today-scheduled-wo", roles: [role.Tech, role.TechRestricted], title: "DashboardScheduled", type: "GzDashTodayScheduledWo", @@ -56,35 +53,32 @@ export default { settings: {} }, { - id: "dash-labor-hours-personal", roles: [role.Tech, role.TechRestricted], - title: "Labor hours", + title: "WorkOrderItemLaborList", type: "GzDashLaborHoursPersonal", scheduleableUserOnly: true, singleOnly: false, settings: { customTitle: null, - dateRange: "*thismonth*", - unit: "day", - color: "#000000" + timeSpan: "*thismonth*", + interval: "day", + color: "#00205B" } }, { - id: "dash-labor-hours-personal-bar", roles: [role.Tech, role.TechRestricted], - title: "Labor hours - bar", + title: "WorkOrderItemLaborList", type: "GzDashLaborHoursPersonalBar", scheduleableUserOnly: true, singleOnly: false, settings: { customTitle: null, - dateRange: "*thismonth*", - unit: "day", - color: "#000000" + timeSpan: "*thismonth*", + interval: "day", + color: "#00205B" } }, { - id: "TestBarWidgetCountByUserType", roles: [ role.BizAdmin, role.BizAdminRestricted, @@ -98,7 +92,6 @@ export default { settings: { customTitle: "my custom title" } }, { - id: "TestLineWidgetMonthlyTotalPrice", roles: [ role.BizAdmin, role.BizAdminRestricted, @@ -126,7 +119,7 @@ export default { continue; } ret.push({ - id: item.id, + id: i, title: item.title, type: item.type, singleOnly: item.singleOnly, diff --git a/ayanova/src/components/dash-base.vue b/ayanova/src/components/dash-base.vue index 67ab2c1c..506be7c6 100644 --- a/ayanova/src/components/dash-base.vue +++ b/ayanova/src/components/dash-base.vue @@ -168,7 +168,7 @@ export default { props: { id: { - type: String, + type: Number, required: true }, title: { type: String, default: null }, diff --git a/ayanova/src/components/dash-labor-hours-personal-bar.vue b/ayanova/src/components/dash-labor-hours-personal-bar.vue index 3a6883d5..1555f0db 100644 --- a/ayanova/src/components/dash-labor-hours-personal-bar.vue +++ b/ayanova/src/components/dash-labor-hours-personal-bar.vue @@ -2,7 +2,7 @@