web/satellite: hide sidebar on onboarding

The sidebar previously was showing on the onboarding pages when all
projects dashboard is enabled. This change hides it and also hides the
"session timeout" info banner which was also showing on onboarding.

Issue: https://github.com/storj/storj/issues/5874

Change-Id: Ie418a6f286262b59dce41aba98a5c9d0015cb984
This commit is contained in:
Wilfred Asomani 2023-05-12 09:29:58 +00:00 committed by Storj Robot
parent 277a4c6aa3
commit b11ba50b94

View File

@ -236,7 +236,7 @@ const sessionRefreshInterval = computed((): number => {
* Indicates whether the update session timeout notification should be shown.
*/
const isUpdateSessionTimeoutBanner = computed((): boolean => {
return router.currentRoute.name !== RouteConfig.Settings.name && appStore.state.isUpdateSessionTimeoutBanner;
return (router.currentRoute.name !== RouteConfig.Settings.name && !isOnboardingTour.value) && appStore.state.isUpdateSessionTimeoutBanner;
});
/**
@ -338,13 +338,7 @@ const limitState = computed((): LimitedState => {
* Indicates if navigation sidebar is hidden.
*/
const isNavigationHidden = computed((): boolean => {
return (!isAllProjectsDashboard.value && isOnboardingTour.value)
|| isCreateProjectPage.value;
});
/* whether all projects dashboard should be used */
const isAllProjectsDashboard = computed((): boolean => {
return configStore.state.config.allProjectsDashboard;
return isOnboardingTour.value || isCreateProjectPage.value;
});
/* whether the project limit banner should be shown. */