named anonymous functions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user