desktopVisuals.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. },
  14. // TODO: should be moved to mobile only or renamed completley.
  15. tooltip: {
  16. type: 'inline',
  17. component: () => null,
  18. },
  19. filePreview: {
  20. buttonComponent: CommonButton,
  21. buttonProps: {
  22. variant: 'remove',
  23. },
  24. },
  25. fieldFile: {
  26. buttonComponent: CommonButton,
  27. },
  28. })
  29. }