Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
fix(settings): don't show privacy link unless dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfluckey committed Oct 25, 2023
1 parent 2b848b8 commit 692f38e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ useHydratedHead({
const route = useRoute()
const isRootPath = computedEager(() => route.name === 'settings')
const devMode = useAppConfig().env === ('dev' || 'canary' || 'preview')
</script>

<template>
Expand Down Expand Up @@ -64,6 +65,7 @@ const isRootPath = computedEager(() => route.name === 'settings')
:match="$route.path.startsWith('/settings/preferences/')"
/>
<SettingsItem
v-if="devMode"
command
icon="i-ri-lock-line"
:text="isHydrated ? $t('settings.privacy.label') : ''"
Expand Down

0 comments on commit 692f38e

Please sign in to comment.