diff --git a/core/src/navigation/LogoTitle.svelte b/core/src/navigation/LogoTitle.svelte index 31a0d81986..22aac43e56 100644 --- a/core/src/navigation/LogoTitle.svelte +++ b/core/src/navigation/LogoTitle.svelte @@ -185,7 +185,16 @@
{}}> {#if addNavHrefForAnchor} - {#if appSwitcherItems && appSwitcherItems.length > 0} + {#if appSwitcherItems && appSwitcherItems.length === 1} + + + {$getTranslation(appSwitcherItems[0].title)} + + + {/if} + {#if appSwitcherItems && appSwitcherItems.length > 1} {#each appSwitcherItems as item} {#if item === selectedItem && hasValidLink(item, pathParams)} 0 && !selectedItem} + {#if appSwitcherItems.length > 1 && !selectedItem} +{#if showTopNav} +
+
+ {#if responsiveNavSetting==="simple" || responsiveNavSetting==="simpleMobileOnly" || + responsiveNavSetting==="Fiori3"} + + {/if} + +
+ {#if globalSearchConfig && isGlobalSearchCentered} + + {/if} +
+ {#if !authorizationEnabled || isLoggedIn} {#if globalSearchConfig && + !isGlobalSearchCentered} + + {/if} + + {/if} {#if globalSearchConfig || (children && pathData.length > 0)} {#if (children && + pathData.length > 0)} {#each children as node, i} {#if !(node.hideFromNav || + (showGlobalNav && node.globalNav))} {#if node.isCat} +
+
+
+ +
+ +
+
+ {:else} +
+ {#if addNavHrefForAnchor} + + {:else} + + {/if} +
+ {/if} {/if} {/each} {/if} + + + + {#if (visibleNodeCount - globalNavNodeCount > 0) || isProductSwitcherAvailable || + contextSwitcherConfig || globalSearchConfig } +
+
+
+
+ +
+
+ +
+ {#if isProductSwitcherAvailable} + + {/if} {#if openMobileDropDown} + + {/if} {#if !authorizationEnabled || isLoggedIn} + + {/if} +
+
+
+ {/if} {/if} + + {#if authorizationEnabled || profileItemsAvailable} +
+ {#if profileTypeSettings === "Fiori3" && + GenericHelpers.requestExperimentalFeature('profileMenuFiori3', true) } +
+
+ {#if userInfo.picture} + + {:else} + + {/if} +
+
+ +
+
+ {:else} +
+
+
+
+ +
+
+
+ +
+
+
+ {/if} +
+ {/if} {#if isProductSwitcherAvailable} + + {/if} +
+
+{:else} + +{/if} - -{#if showTopNav} -
-
- {#if responsiveNavSetting === 'simple' || responsiveNavSetting === 'simpleMobileOnly' || responsiveNavSetting === 'Fiori3'} - - {/if} - -
- {#if globalSearchConfig && isGlobalSearchCentered} - - {/if} -
- {#if !authorizationEnabled || isLoggedIn} - {#if globalSearchConfig && !isGlobalSearchCentered} - - {/if} - - toggleDropdownState('contextSwitcherPopover')} - isMobile={false} - {addNavHrefForAnchor} - /> - {/if} - {#if globalSearchConfig || (children && pathData.length > 0)} - {#if children && pathData.length > 0} - {#each children as node, i} - {#if !(node.hideFromNav || (showGlobalNav && node.globalNav))} - {#if node.isCat} -
-
-
{}} - > - -
- -
-
- {:else} -
- {#if addNavHrefForAnchor} - - {:else} - - {/if} -
- {/if} - {/if} - {/each} - {/if} - - - - {#if visibleNodeCount - globalNavNodeCount > 0 || isProductSwitcherAvailable || contextSwitcherConfig || globalSearchConfig} -
-
-
-
{}} - > - -
- - {#if isProductSwitcherAvailable} - - toggleDropdownState('productSwitcherPopover')} - isMobile={true} - /> - {/if} - {#if openMobileDropDown} - - {/if} - {#if !authorizationEnabled || isLoggedIn} - - toggleDropdownState('contextSwitcherPopover')} - isMobile={true} - {contextSwitcherToggle} - bind:selectedLabel - bind:defaultLabel={defaultLabelContextSwitcher} - /> - {/if} -
-
-
- {/if} - {/if} - - {#if authorizationEnabled || profileItemsAvailable} -
- {#if profileTypeSettings === 'Fiori3' && GenericHelpers.requestExperimentalFeature('profileMenuFiori3', true)} -
-
{}} - > - {#if userInfo.picture} - - {/if} -
-
- - toggleDropdownState('profilePopover')} - on:userInfoUpdated={userInfoUpdate} - {addNavHrefForAnchor} - /> -
-
- {:else} -
-
-
{}} - > -
- -
-
-
- - toggleDropdownState('profilePopover')} - on:userInfoUpdated={userInfoUpdate} - {addNavHrefForAnchor} - /> -
-
-
- {/if} -
- {/if} - {#if isProductSwitcherAvailable} - - toggleDropdownState('productSwitcherPopover')} - isMobile={false} - {addNavHrefForAnchor} - /> - {/if} -
-
-{:else} - toggleDropdownState('profilePopover')} - isHidden={true} - {addNavHrefForAnchor} - /> -{/if} -