From dd3199aafba1d3ac88a5145cd61cea974e106c51 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 6 Oct 2021 15:20:01 +0000 Subject: [PATCH] --- ayanova/src/views/svc-schedule.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ayanova/src/views/svc-schedule.vue b/ayanova/src/views/svc-schedule.vue index 575cc401..52ddc78e 100644 --- a/ayanova/src/views/svc-schedule.vue +++ b/ayanova/src/views/svc-schedule.vue @@ -402,7 +402,7 @@ export default { hour12: window.$gz.locale.getHour12(), formUserOptions: {}, tempFirstTime: null, - availableUsers: [], + // availableUsers: [], lastMouseDownMS: null, tags: [] }; @@ -792,7 +792,7 @@ export default { window.$gz.form.setErrorBoxErrors(this); } else { this.categories = res.data.users; - this.availableUsers = res.data.users; + // this.availableUsers = res.data.users; this.events.splice(0); const timeZoneName = this.timeZoneName; @@ -822,7 +822,7 @@ export default { id: x.id, editable: x.editable, userId: x.userId, - category: this.availableUsers.find(a => a.id == x.userId).name + category: this.categories.find(a => a.id == x.userId).name }); } } @@ -1042,15 +1042,15 @@ async function getFormUserOptions(vm) { firstTime: "00:00", excludeDaysOfWeek: 0, wisuColorSource: "2", - wisu: true, - users: [...vm.availableUsers.map(x => x.id)] //default to all users + wisu: true + //, users: [...vm.availableUsers.map(x => x.id)] //default to all users }; } else { vm.formUserOptions = JSON.parse(res.data.options); } - vm.categories = vm.formUserOptions.users.map(x => { - return vm.availableUsers.find(a => a.id == x); - }); + // vm.categories = vm.formUserOptions.users.map(x => { + // return vm.availableUsers.find(a => a.id == x); + // }); //takes local time in "HH:MM" format and converts to ISO UTC format for picker consumption const d = new Date(); const temp = new Date(