Skip to content

Commit

Permalink
fix(#494): Adding a create chart menu to the nanomine home page hero …
Browse files Browse the repository at this point in the history
…section
  • Loading branch information
tholulomo committed Jun 23, 2024
1 parent 93233b4 commit f429422
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions app/src/components/nanomine/HeroHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@
class="nav_menu--siblings-lists"
><a>Form Curation</a></router-link
>
<router-link
to="/explorer/chart/editor/new"
class="nav_menu--siblings-lists"
><a>Create Chart</a></router-link
>
</div>
</div>
</li>
Expand Down Expand Up @@ -139,8 +144,15 @@
</div>
</li>
<li class="u_margin-right-small" v-if="isAuth">
<div class="nav_menu--container">
<a class="u--default-size" href="/mypage">My Portal</a>
<div v-if="!isAdmin" class="nav_menu--container">
<router-link class="u--default-size" to="/portal/user">
<span>My Portal</span></router-link
>
</div>
<div v-else class="nav_menu--container">
<router-link class="u--default-size" to="/portal">
<span>Admin Center</span></router-link
>
</div>
</li>
</ul>
Expand All @@ -150,16 +162,17 @@
</template>

<script>
import { mapGetters } from 'vuex'
import { mapGetters } from 'vuex';
export default {
name: 'HeroHeader',
props: ['toggler'],
computed: {
...mapGetters({
info: 'appHeaderInfo',
isAuth: 'auth/isAuthenticated',
isAdmin: 'auth/isAdmin',
displayName: 'auth/displayName'
})
}
}
};
</script>

0 comments on commit f429422

Please sign in to comment.