objectAttributes.ts 578 B

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