This commit is contained in:
@@ -49,6 +49,7 @@ SHELL / NAV / MENUS / LAYOUT
|
|||||||
|
|
||||||
TODO: LOCALIZATION
|
TODO: LOCALIZATION
|
||||||
- ACTIONS
|
- ACTIONS
|
||||||
|
- TRY AN ALTERNATE LANGUAGE IN VUETIFY USING THEIR METHOD, SEE WHATS INVOLVED
|
||||||
- Find out how to override the default locale for vuetify to set specific items to our localized text version
|
- Find out how to override the default locale for vuetify to set specific items to our localized text version
|
||||||
- this saves having to use a whole locale for just the calendar etc
|
- this saves having to use a whole locale for just the calendar etc
|
||||||
- DATE / TIME PICKERS
|
- DATE / TIME PICKERS
|
||||||
|
|||||||
@@ -19,8 +19,9 @@ export default function initialize() {
|
|||||||
//Fetch the core localized text keys that will always be required by user
|
//Fetch the core localized text keys that will always be required by user
|
||||||
window.$gz.locale
|
window.$gz.locale
|
||||||
.fetch(window.$gz.locale.coreKeys)
|
.fetch(window.$gz.locale.coreKeys)
|
||||||
.then(function putFetchedNavItemsInStore() {
|
|
||||||
//put nav items into store
|
.then(function initializeNavPanel() {
|
||||||
|
console.log("INIT NAV PANEL");
|
||||||
var key = 0;
|
var key = 0;
|
||||||
var sub = [];
|
var sub = [];
|
||||||
|
|
||||||
@@ -732,6 +733,7 @@ export default function initialize() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
//console.log("INIT FETCH USEROPTIONS AND CACHE");
|
||||||
//CACHE LOCALE SETTINGS
|
//CACHE LOCALE SETTINGS
|
||||||
window.$gz.api
|
window.$gz.api
|
||||||
.get("UserOptions/" + window.$gz.store.state.userId)
|
.get("UserOptions/" + window.$gz.store.state.userId)
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
<div>
|
<div>
|
||||||
<v-row row wrap v-if="!readonly">
|
<v-row row wrap v-if="!readonly">
|
||||||
<v-col xs6>
|
<v-col xs6>
|
||||||
<v-dialog v-model="dlgdate" persistent width="290px">
|
<v-dialog
|
||||||
|
ref="theDateDialog"
|
||||||
|
v-model="dlgdate"
|
||||||
|
persistent
|
||||||
|
width="290px"
|
||||||
|
>
|
||||||
<template v-slot:activator="{ on }">
|
<template v-slot:activator="{ on }">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-on="on"
|
v-on="on"
|
||||||
@@ -15,14 +20,23 @@
|
|||||||
:error="!!error"
|
:error="!!error"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</template>
|
</template>
|
||||||
<v-date-picker v-model="dateOnly" @input="dlgdate = false">
|
<v-date-picker
|
||||||
|
ref="theDatePicker"
|
||||||
|
v-model="dateOnly"
|
||||||
|
@input="dlgdate = false"
|
||||||
|
>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<v-btn text color="primary" @click="dlgdate = false">Close</v-btn>
|
<v-btn text color="primary" @click="dlgdate = false">Close</v-btn>
|
||||||
</v-date-picker>
|
</v-date-picker>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col xs6>
|
<v-col xs6>
|
||||||
<v-dialog v-model="dlgtime" persistent width="290px">
|
<v-dialog
|
||||||
|
ref="theTimeDialog"
|
||||||
|
v-model="dlgtime"
|
||||||
|
persistent
|
||||||
|
width="290px"
|
||||||
|
>
|
||||||
<template v-slot:activator="{ on }">
|
<template v-slot:activator="{ on }">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-on="on"
|
v-on="on"
|
||||||
@@ -34,7 +48,12 @@
|
|||||||
:error="!!error"
|
:error="!!error"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</template>
|
</template>
|
||||||
<v-time-picker scrollable ampm-in-title v-model="timeOnly">
|
<v-time-picker
|
||||||
|
ref="theTimePicker"
|
||||||
|
scrollable
|
||||||
|
ampm-in-title
|
||||||
|
v-model="timeOnly"
|
||||||
|
>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<v-btn text color="primary" @click="dlgtime = false">OK</v-btn>
|
<v-btn text color="primary" @click="dlgtime = false">OK</v-btn>
|
||||||
</v-time-picker>
|
</v-time-picker>
|
||||||
@@ -56,9 +75,10 @@
|
|||||||
<script>
|
<script>
|
||||||
/* Xeslint-disable */
|
/* Xeslint-disable */
|
||||||
export default {
|
export default {
|
||||||
|
// created() {
|
||||||
|
// debugger;
|
||||||
|
// },
|
||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
//debugger;
|
|
||||||
//this is a nothing line as a test
|
|
||||||
//check pre-requisites exist just in case
|
//check pre-requisites exist just in case
|
||||||
if (window.$gz.errorHandler.devMode()) {
|
if (window.$gz.errorHandler.devMode()) {
|
||||||
if (!window.$gz.dayjs) {
|
if (!window.$gz.dayjs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user