objectAttributes.ts 571 B

1234567891011121314151617
  1. // Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. import { defineStore } from 'pinia'
  3. import { useObjectAttributesScreen } from '@shared/entities/object-attributes/composables/useObjectAttributesScreen'
  4. import { EnumObjectManagerObjects } from '@shared/graphql/types'
  5. export const useUserObjectAttributesStore = defineStore(
  6. 'userObjectAttributes',
  7. () => {
  8. const { screenAttributes: viewScreenAttributes } =
  9. useObjectAttributesScreen(EnumObjectManagerObjects.User, 'view')
  10. return {
  11. viewScreenAttributes,
  12. }
  13. },
  14. )