Skip to content

Commit

Permalink
hide profile page if user does not have a domain name
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Sep 25, 2024
1 parent 2072862 commit 16de854
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion components/navbars/NavbarDesktop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
{{ showDomainOrAddress }}
</a>
<div class="dropdown-menu dropdown-menu-end">
<NuxtLink class="dropdown-item cursor-pointer" to="/profile">Profile</NuxtLink>
<NuxtLink v-if="userStore.getDefaultDomain" class="dropdown-item cursor-pointer" to="/profile">Profile</NuxtLink>

<span class="dropdown-item cursor-pointer" data-bs-toggle="modal" data-bs-target="#chatSettingsModal"
>Settings</span
>
Expand Down
4 changes: 2 additions & 2 deletions components/sidebars/SidebarLeft.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div id="sidebar1" class="collapse collapse-horizontal" :class="$config.sidebarLeftSticky ? 'sticky-lg-top' : ''">
<div class="sidebar-nav list-group border-0 rounded-0 text-sm-start min-vh-100">
<div class="card m-2 p-2 bg-light">
<div v-if="isActivated" class="text-center">
<div v-if="isActivated && userStore.getDefaultDomain" class="text-center">
<NuxtLink to="/profile">
<ProfileImage
:key="userStore.getImage"
Expand Down Expand Up @@ -96,7 +96,7 @@
</li>

<!-- Profile -->
<li v-if="isActivated" class="nav-item p-1" @click="closeLeftSidebar">
<li v-if="isActivated && userStore.getDefaultDomain" class="nav-item p-1" @click="closeLeftSidebar">
<NuxtLink
class="nav-link"
:class="$route.path.startsWith('/profile') ? 'active' : ''"
Expand Down

0 comments on commit 16de854

Please sign in to comment.