Skip to content

Commit

Permalink
feat(Header): show local or staging suffix if not in prod. ref #876
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Oct 22, 2024
1 parent b72bbab commit bc02bb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<span style="cursor:pointer" @click="$router.push('/')">
<img src="/favicon.svg" height="28" width="28" style="vertical-align:bottom">
{{ APP_NAME }}
<span v-if="ENV !== 'prod'" class="text-caption">{{ ENV }}</span>
</span>
</v-app-bar-title>
<v-btn v-if="!$vuetify.display.smAndUp" icon="mdi-magnify" to="/search" :aria-label="$t('Common.Search')" />
Expand Down Expand Up @@ -62,6 +63,7 @@ export default {
data() {
return {
APP_NAME: constants.APP_NAME,
ENV: import.meta.env.VITE_OPEN_PRICES_ENV,
showDrawerMenu: false,
showProfileMenu: false,
}
Expand Down

0 comments on commit bc02bb0

Please sign in to comment.