Skip to content

Commit

Permalink
feat: Implement left navigation level 1 for sites - EXO-65477 - Meeds…
Browse files Browse the repository at this point in the history
  • Loading branch information
IlhemEssaadi committed Sep 5, 2023
1 parent 167143b commit 0e9cf06
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,7 @@ private static SiteEntity buildSiteEntity(PortalConfig site, HttpServletRequest
userPortalContext);
UserPortal userPortal = userPortalCfg.getUserPortal();
UserNavigation navigation = userPortal.getNavigation(new SiteKey(siteType.getName(), site.getName()));
rootNode = userPortal.getNode(navigation, Scope.ALL, UserNodeFilterConfig.builder().build(), null);
rootNode = userPortal.getNode(navigation, Scope.ALL, UserNodeFilterConfig.builder().withReadWriteCheck().build(), null);
} catch (Exception e) {
LOG.error("Error while getting site {} navigations for user {}", site.getName(), currentUser, e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function getSites(siteType, displayed, allSites, excludedSiteName, expand
}
formData.append('displayed', displayed);
formData.append('allSites', allSites);
formData.append('filterByPermission', filterByPermission);
formData.append('filterByPermissions', filterByPermission);
if (excludedSiteName) {
formData.append('excludedSiteName', excludedSiteName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@
<template>
<v-list-item
:href="uri"
:target="target"
class="ps-0">
:target="target">
<v-list-item-icon class-name="flex align-center flex-grow-0">
<v-icon v-if="navigation.icon"> {{ icon }}</v-icon>
<i v-else :class="iconClass"></i>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title
class-name="subtitle-2"
class="subtitle-2"
v-text="navigation.label" />
</v-list-item-content>
</v-list-item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

-->
<template>
<v-list-item :href="uri" class="ps-0">
<v-list-item :href="uri">
<v-list-item-icon class="flex align-center flex-grow-0 my-2">
<v-icon v-if="siteRootNode.icon"> {{ icon }}</v-icon>
<i v-else :class="iconClass"></i>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
dense
min-width="90%"
class="pb-0">
<v-list-item
<v-list-item-group
v-for="site in sites"
:key="site.name"
link>
<meta-site-hamburger-navigation v-if="site.metaSite" :navigations="site.siteNavigations" />
<site-hamburger-item
v-else
:site="site" />
</v-list-item>
</v-list-item-group>
</v-list>
</template>

Expand Down

0 comments on commit 0e9cf06

Please sign in to comment.