desktopVisuals.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { setupCommonVisualConfig } from '#shared/composables/useSharedVisualConfig.ts'
  3. import CommonButton from '#desktop/components/CommonButton/CommonButton.vue'
  4. import CommonObjectAttribute from '#desktop/components/CommonObjectAttribute/CommonObjectAttribute.vue'
  5. import CommonObjectAttributeContainer from '#desktop/components/CommonObjectAttribute/CommonObjectAttributeContainer.vue'
  6. export const initializeDesktopVisuals = () => {
  7. setupCommonVisualConfig({
  8. // TODO: for later implementation
  9. objectAttributes: {
  10. outer: CommonObjectAttributeContainer,
  11. wrapper: CommonObjectAttribute,
  12. classes: {
  13. link: 'text-sm',
  14. },
  15. },
  16. // TODO: should be moved to mobile only or renamed completley.
  17. tooltip: {
  18. type: 'inline',
  19. component: () => null,
  20. },
  21. filePreview: {
  22. buttonComponent: CommonButton,
  23. buttonProps: {
  24. variant: 'remove',
  25. },
  26. },
  27. fieldFile: {
  28. buttonComponent: CommonButton,
  29. },
  30. })
  31. }