This commit is contained in:
2019-03-28 19:27:41 +00:00
parent f3925bfd64
commit f07a6d4b0d

View File

@@ -56,11 +56,13 @@
export default {
beforeCreate() {
//check pre-requisites exist just in case
if (!this.$dayjs) {
throw "GzDateAndTimePicker: the DayJS library is required and missing";
}
if (!this.$gzlocale) {
throw "GzDateAndTimePicker: $gzlocale is required and missing";
if (this.$gzdevmode()) {
if (!this.$dayjs) {
throw "GzDateAndTimePicker: the DayJS library is required and missing";
}
if (!this.$gzlocale) {
throw "GzDateAndTimePicker: $gzlocale is required and missing";
}
}
},
data: () => ({ date: null, dlgdate: false, dlgtime: false }),