named anonymous functions

This commit is contained in:
2019-04-18 19:51:21 +00:00
parent 7770b8bad1
commit 8cdae969fb
13 changed files with 43 additions and 39 deletions

View File

@@ -20,7 +20,7 @@ export default function initialize() {
//Fetch the core localized text keys that will always be required by user
locale
.fetch(locale.coreKeys)
.then(function() {
.then(function putFetchedNavItemsInStore() {
//put nav items into store
//Everyone has a home
addNavItem(locale.get("Home"), "home", "/");
@@ -74,7 +74,7 @@ export default function initialize() {
addNavItem(locale.get("HelpAboutAyaNova"), "info-circle", "/about");
addNavItem(locale.get("Logout"), "sign-out-alt", "/login");
})
.catch(function(error) {
.catch(function handleIntializeError(error) {
store.commit("logItem", "Initialize::() ltfetch -> error" + error);
throw error;
});
@@ -110,7 +110,7 @@ export default function initialize() {
locale.timeZoneOffset = res.data.timeZoneOffset;
}
})
.catch(function(error) {
.catch(function handleFetchUserOptionsError(error) {
store.commit(
"logItem",
"Initialize::() fetch useroptions -> error" + error