mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 01:20:09 +00:00
Show staging tag for staging firebase (#3693)
This commit is contained in:
@@ -3,9 +3,21 @@
|
||||
<h2 class="px-4">
|
||||
<i class="pi pi-cog" />
|
||||
<span>{{ $t('g.settings') }}</span>
|
||||
<Tag
|
||||
v-if="isStaging"
|
||||
value="staging"
|
||||
severity="warn"
|
||||
class="ml-2 text-xs"
|
||||
/>
|
||||
</h2>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import Tag from 'primevue/tag'
|
||||
|
||||
// @ts-expect-error: Global variable from vite build defined in global.d.ts
|
||||
const isStaging = !window.__USE_PROD_CONFIG__
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.pi-cog {
|
||||
|
||||
Reference in New Issue
Block a user