Env.vue 595 B

123456789101112131415161718192021222324
  1. <!--
  2. Switch year bar : Barre qui s'affiche lorsque l'utilisateur n'est pas dans un environnement de production
  3. -->
  4. <template>
  5. <UiSystemBar color="ot_warning" v-if="show">
  6. <template #bar.text>
  7. <v-icon small>fas fa-exclamation-triangle</v-icon> {{$t('not_production_environment', { env })}}
  8. </template>
  9. </UiSystemBar>
  10. </template>
  11. <script lang="ts">
  12. import { defineComponent} from '@nuxtjs/composition-api'
  13. export default defineComponent({
  14. setup () {
  15. return{
  16. show: process.env.environment !== 'production',
  17. env: process.env.environment
  18. }
  19. }
  20. })
  21. </script>