Skip to content

Commit df723b5

Browse files
authored
Show staging tag for staging firebase (#3693)
1 parent c5eb97e commit df723b5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/components/dialog/header/SettingDialogHeader.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,21 @@
33
<h2 class="px-4">
44
<i class="pi pi-cog" />
55
<span>{{ $t('g.settings') }}</span>
6+
<Tag
7+
v-if="isStaging"
8+
value="staging"
9+
severity="warn"
10+
class="ml-2 text-xs"
11+
/>
612
</h2>
713
</div>
814
</template>
15+
<script setup lang="ts">
16+
import Tag from 'primevue/tag'
17+
18+
// @ts-expect-error: Global variable from vite build defined in global.d.ts
19+
const isStaging = !window.__USE_PROD_CONFIG__
20+
</script>
921

1022
<style scoped>
1123
.pi-cog {

0 commit comments

Comments
 (0)