This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -141,7 +141,7 @@ export default {
|
||||
"WidgetCustom14",
|
||||
"WidgetCustom15",
|
||||
"WidgetCustom16"
|
||||
].concat(this.$gzlocale.commonKeysEditForm);
|
||||
];
|
||||
this.$gzlocale
|
||||
.fetch(ltKeysRequired)
|
||||
.then(() => (this.formReady = true))
|
||||
|
||||
Reference in New Issue
Block a user