CommonLogo.vue 570 B

123456789101112131415161718
  1. <!-- Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import { computed } from 'vue'
  4. import { useApplicationStore } from '@shared/stores/application'
  5. const assetsPath = '/assets/images'
  6. const application = useApplicationStore()
  7. const logoUrl = computed(() => {
  8. if (!application.hasCustomProductBranding) return `${assetsPath}/logo.svg`
  9. return `${assetsPath}/${application.config.product_logo}`
  10. })
  11. </script>
  12. <template>
  13. <img class="h-40 w-40" :src="logoUrl" :alt="($c.product_name as string)" />
  14. </template>