From 358f21b8de86fd82d90c5ef1e095aad0ce63a205 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 22 Feb 2022 20:06:07 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 3 - .../src/components/dash-scheduser-next-wo.vue | 114 +++++++++--------- ayanova/src/main.js | 2 +- 3 files changed, 58 insertions(+), 61 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index fefe1fef..3dca3e32 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -22,9 +22,6 @@ FIRST CLIENT SOURCE CODE COMMIT JAN 3rd 2019 # OUTSTANDING MAJOR AREAS TO BETA -Support information, easy way for beta testers to gather it all up in one place. - if they have enough rights then copy support information can get it all from the client end, if not then only the client stuff - dashboard widgets diff --git a/ayanova/src/components/dash-scheduser-next-wo.vue b/ayanova/src/components/dash-scheduser-next-wo.vue index 55f7ecf3..1bf4781d 100644 --- a/ayanova/src/components/dash-scheduser-next-wo.vue +++ b/ayanova/src/components/dash-scheduser-next-wo.vue @@ -77,63 +77,63 @@ export default { // } else { // this.obj = []; // } - - try { - window.$gz.form.deleteAllErrorBoxErrors(this); - const res = await window.$gz.api.post("schedule/personal", { - view: window.$gz.util.calendarViewToAyaNovaEnum(this.viewType), - dark: this.$store.state.darkMode, - start: window.$gz.locale.localTimeDateStringToUTC8601String( - `${start.date}T00:00:00`, - this.timeZoneName - ), - end: window.$gz.locale.localTimeDateStringToUTC8601String( - `${end.date}T23:59:59`, - this.timeZoneName - ), - wisuColorSource: this.formUserOptions.wisuColorSource, - wisu: this.formUserOptions.wisu, //workorder item scheduled user records - reviews: this.formUserOptions.reviews, - reminders: this.formUserOptions.reminders - }); - if (res.error) { - this.formState.serverError = res.error; - window.$gz.form.setErrorBoxErrors(this); - } else { - this.events.splice(0); - const timeZoneName = this.timeZoneName; - let i = res.data.length; - while (i--) { - const x = res.data[i]; - this.events.push({ - start: new Date( - new Date(x.start) - .toLocaleString("sv-SE", { - timeZone: timeZoneName - }) - .replace(" ", "T") - ).getTime(), - end: new Date( - new Date(x.end) - .toLocaleString("sv-SE", { - timeZone: timeZoneName - }) - .replace(" ", "T") - ).getTime(), - timed: true, - name: x.name, - color: x.color, - textColor: x.textColor, - type: x.type, - id: x.id, - editable: x.editable, - userId: x.userId - }); - } - } - } catch (error) { - window.$gz.errorHandler.handleFormError(error, this); - } + //========================= commented out for release temporarily ===================== + // try { + // window.$gz.form.deleteAllErrorBoxErrors(this); + // const res = await window.$gz.api.post("schedule/personal", { + // view: window.$gz.util.calendarViewToAyaNovaEnum(this.viewType), + // dark: this.$store.state.darkMode, + // start: window.$gz.locale.localTimeDateStringToUTC8601String( + // `${start.date}T00:00:00`, + // this.timeZoneName + // ), + // end: window.$gz.locale.localTimeDateStringToUTC8601String( + // `${end.date}T23:59:59`, + // this.timeZoneName + // ), + // wisuColorSource: this.formUserOptions.wisuColorSource, + // wisu: this.formUserOptions.wisu, //workorder item scheduled user records + // reviews: this.formUserOptions.reviews, + // reminders: this.formUserOptions.reminders + // }); + // if (res.error) { + // this.formState.serverError = res.error; + // window.$gz.form.setErrorBoxErrors(this); + // } else { + // this.events.splice(0); + // const timeZoneName = this.timeZoneName; + // let i = res.data.length; + // while (i--) { + // const x = res.data[i]; + // this.events.push({ + // start: new Date( + // new Date(x.start) + // .toLocaleString("sv-SE", { + // timeZone: timeZoneName + // }) + // .replace(" ", "T") + // ).getTime(), + // end: new Date( + // new Date(x.end) + // .toLocaleString("sv-SE", { + // timeZone: timeZoneName + // }) + // .replace(" ", "T") + // ).getTime(), + // timed: true, + // name: x.name, + // color: x.color, + // textColor: x.textColor, + // type: x.type, + // id: x.id, + // editable: x.editable, + // userId: x.userId + // }); + // } + // } + // } catch (error) { + // window.$gz.errorHandler.handleFormError(error, this); + // } } } }; diff --git a/ayanova/src/main.js b/ayanova/src/main.js index 395d6347..9c912a90 100644 --- a/ayanova/src/main.js +++ b/ayanova/src/main.js @@ -66,7 +66,7 @@ import chartBarHorizontalControl from "./components/chart-bar-horizontal-control //DEVELOPMENT MODE //THIS SHOULD BE FALSE IN RELEASE //************************************************************ -const DEV_MODE = true; +const DEV_MODE = false; //************************************************************ //************************************************************** //**************************************************************