OrganizationItem.story.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!-- Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import OrganizationItem from './OrganizationItem.vue'
  4. const organization = {
  5. id: '54321',
  6. internalId: 2,
  7. ticketsCount: {
  8. open: 2,
  9. closed: 0,
  10. },
  11. name: 'Lorem Ipsum',
  12. active: false,
  13. }
  14. </script>
  15. <template>
  16. <Story group="modules">
  17. <Variant title="Default">
  18. <OrganizationItem
  19. :entity="{
  20. ...organization,
  21. active: true,
  22. updatedAt: new Date(2022, 1, 2).toISOString(),
  23. updatedBy: {
  24. id: '456',
  25. fullname: 'Jane Doe',
  26. },
  27. members: {
  28. edges: [
  29. {
  30. node: { fullname: 'Erik Wise' },
  31. },
  32. {
  33. node: { fullname: 'Peter Smith' },
  34. },
  35. ],
  36. totalCount: 3,
  37. },
  38. }"
  39. />
  40. </Variant>
  41. <Variant title="No Edit">
  42. <OrganizationItem :entity="organization" />
  43. </Variant>
  44. </Story>
  45. </template>