Skip to content

Commit

Permalink
switch visibility of usersettings entry after prep of all data (#4114)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardl authored Jan 16, 2025
1 parent a5cd3e7 commit 9487797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/AuthorizationSimpleProfileMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
const userSettings = userSettingsConfig
? userSettingsConfig
: await LuigiConfig.getConfigValueAsync('settings.userSettings');
hasUserSettings = Boolean(userSettings);
//check if Settings dropdown is enabled for navigation in Shellbar
const profileNavData = {
items: (await LuigiConfig.getConfigValueAsync('navigation.profile.items')) || []
Expand All @@ -102,6 +101,7 @@
AuthLayerSvc.setProfileLogoutFn(logoutItem.customLogoutFn);
}
profileNav = profileNavData;
hasUserSettings = Boolean(userSettings);
});
}, ['navigation.profile']);
navProfileListenerInstalled = true;
Expand Down

0 comments on commit 9487797

Please sign in to comment.