This commit is contained in:
2019-03-11 22:48:38 +00:00
parent 73b0c1b31e
commit 1b0becca01
3 changed files with 16 additions and 16 deletions

View File

@@ -17,19 +17,9 @@ function addNavItem(title, icon, route) {
// on change of authentication status
export default function initialize() {
if (store.state.authenticated) {
//GET LOCALIZED TEXT FOR SHELL
//GET ALL DEFAULT LOCALIZED TEXT FOR SHELL
locale
.fetch([
"Home",
"Service",
"Dispatch",
"Inventory",
"Accounting",
"Administration",
"Operations",
"HelpAboutAyaNova",
"Logout"
])
.fetch(locale.coreKeys)
.then(function() {
//put nav items into store
//Everyone has a home

View File

@@ -41,9 +41,19 @@ export default {
});
});
},
//Keys that all edit forms have in common (saves retyping them over and over)
commonKeysEditForm: [
//TODO: some of these are not going to be required / missed some I'm sure
//Keys that will always be required for any AyaNova work for any user
coreKeys: [
//main nav options
"Home",
"Service",
"Dispatch",
"Inventory",
"Accounting",
"Administration",
"Operations",
"HelpAboutAyaNova",
"Logout",
//form required options
"Active",
"Add",
"Cancel",

View File

@@ -141,7 +141,7 @@ export default {
"WidgetCustom14",
"WidgetCustom15",
"WidgetCustom16"
].concat(this.$gzlocale.commonKeysEditForm);
];
this.$gzlocale
.fetch(ltKeysRequired)
.then(() => (this.formReady = true))