diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index e9a3ae58..9ed6f1d7 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -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 diff --git a/ayanova/src/api/locale.js b/ayanova/src/api/locale.js index e007a3ae..74faa698 100644 --- a/ayanova/src/api/locale.js +++ b/ayanova/src/api/locale.js @@ -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", diff --git a/ayanova/src/views/inventory-widget-edit.vue b/ayanova/src/views/inventory-widget-edit.vue index ded5866c..1d53b335 100644 --- a/ayanova/src/views/inventory-widget-edit.vue +++ b/ayanova/src/views/inventory-widget-edit.vue @@ -141,7 +141,7 @@ export default { "WidgetCustom14", "WidgetCustom15", "WidgetCustom16" - ].concat(this.$gzlocale.commonKeysEditForm); + ]; this.$gzlocale .fetch(ltKeysRequired) .then(() => (this.formReady = true))