This commit is contained in:
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user