Skip to content

Commit

Permalink
modified logic for showing open plan button
Browse files Browse the repository at this point in the history
  • Loading branch information
zachary-kent committed Oct 27, 2022
1 parent a206065 commit 874bd34
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<img class="navbar-icon hairline" src="@/assets/images/navbar/hairline.svg" />
</div>
<div
v-if="toolsEnabled"
v-if="showOpenPlan"
class="navbar-buttonWrapper desktop"
@click="openPlan"
data-cyId="openPlan"
Expand Down Expand Up @@ -60,7 +60,7 @@
</span>
</button>
<button
v-if="toolsEnabled"
v-if="showOpenPlan"
class="nav-mobile-button"
data-cyId="navbar-openPlan"
@click="openPlan"
Expand Down Expand Up @@ -120,6 +120,9 @@ export default defineComponent({
toolsEnabled(): boolean {
return featureFlagCheckers.isToolsEnabled();
},
showOpenPlan(): boolean {
return this.toolsEnabled || featureFlagCheckers.isProfileEnabled();
},
},
methods: {
logout() {
Expand Down

0 comments on commit 874bd34

Please sign in to comment.