Skip to content

Commit

Permalink
show enviroment tag only in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Apr 9, 2024
1 parent 13450df commit f7e9224
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .vitepress/theme/components/header/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ onMounted(async () => {
nimiqLogo.value = await getIconSnippet('nimiq:logos-nimiq-horizontal', 'SVG')
})
const { copy, isSupported } = useClipboard({ copiedDuring: 3000 })
const showEnvironment = __BUILD_ENVIRONMENT__ !== 'production'
</script>

<template>
Expand Down Expand Up @@ -56,7 +58,7 @@ const { copy, isSupported } = useClipboard({ copiedDuring: 3000 })
</ContextMenu.Portal>
</ContextMenu.Root>

<div absolute top-36 right--12 @click.prevent>
<div v-if="showEnvironment" absolute top-36 right--12 @click.prevent>
<Environment />
</div>
</a>
Expand Down

0 comments on commit f7e9224

Please sign in to comment.