useLogoUrl.ts 405 B

123456789101112131415
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { computed } from 'vue'
  3. import { useApplicationStore } from '#shared/stores/application.ts'
  4. export const useLogoUrl = () => {
  5. const application = useApplicationStore()
  6. const logoUrl = computed(() => {
  7. return `/api/v1/system_assets/product_logo/${application.config.product_logo}`
  8. })
  9. return { logoUrl }
  10. }