This commit is contained in:
2022-02-23 17:44:21 +00:00
parent 631950691e
commit 81cd123300
4 changed files with 8 additions and 15 deletions

View File

@@ -14,10 +14,10 @@ export default {
// type: "GzDashTestListWidgetsPriciest"
// },
{
id: "NextSchedItems",
id: "dash-today-scheduled-wo",
roles: [role.Tech, role.TechRestricted],
title: "DashboardScheduled",
type: "NextSchedItems",
type: "GzDashTodayScheduledWo",
scheduleableUserOnly: true
},
{

View File

@@ -39,7 +39,7 @@
</gz-dash>
</template>
<script>
import GzDash from "../components/dash-base.vue";
import GzDash from "./dash-base.vue";
export default {
components: {
@@ -97,14 +97,6 @@ export default {
minute: 0
});
// //calc where to scroll and set
// let hour = now.getHours() - 1;
// if (hour < 0) {
// hour = 0;
// }
// this.startAt = `${hour}:00`;
// this.intervalCount = 24 - hour;
try {
this.errorMessage = null;
const now = window.$gz.locale.nowUTC8601String(this.timeZoneName);

View File

@@ -79,14 +79,14 @@ import DashRegistry from "../api/dash-registry";
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";
import NextSchedItems from "../components/dash-scheduser-next-wo.vue";
import GzDashTodayScheduledWo from "../components/dash-today-scheduled-wo.vue";
export default {
components: {
//GzDashTestListWidgetsPriciest,
GzDashTestBarWidgetCountByUserType,
GzDashTestLineWidgetMonthlyTotalPrice,
GzDashTestDayCalendarWidget,
NextSchedItems
GzDashTodayScheduledWo
},
data() {
return {
@@ -116,7 +116,6 @@ export default {
const vm = this;
try {
console.log("abouty to cache");
await DashRegistry.cacheTranslationsForAvailableItems();
//users have full rights to their dashboard config
vm.rights = window.$gz.role.fullRightsObject();