CommonLogo.vue 599 B

123456789101112131415161718192021
  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. const productLogo = application.config.product_logo as string
  9. if (!productLogo) {
  10. return `${assetsPath}/logo.svg`
  11. }
  12. return `${assetsPath}/${productLogo}`
  13. })
  14. </script>
  15. <template>
  16. <img class="h-40 w-40" :src="logoUrl" :alt="($c.product_name as string)" />
  17. </template>