This commit is contained in:
2022-02-22 20:06:07 +00:00
parent 8055685494
commit 358f21b8de
3 changed files with 58 additions and 61 deletions

View File

@@ -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

View File

@@ -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);
// }
}
}
};

View File

@@ -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;
//************************************************************
//**************************************************************
//**************************************************************