From 5367ac4da6cfe5cddc298d7d2691d1d369946235 Mon Sep 17 00:00:00 2001 From: volar Date: Wed, 4 Dec 2024 22:21:31 +0100 Subject: [PATCH] cached users moved to common admin --- src/components/CachedDamUserChip.vue | 12 ++++++-- .../asset/components/AssetCreateButton.vue | 6 ++-- .../coreDam/asset/detail/AssetDetailView.vue | 5 ++-- .../components/AssetListSidebarMetadata.vue | 11 +++++-- .../list/components/AssetTableRowItem.vue | 14 ++++++--- .../list/composables/assetListActions.ts | 4 +-- .../extSystem/composables/extSystemActions.ts | 5 ++-- .../coreDam/user/composables/cachedUsers.ts | 30 ------------------- 8 files changed, 36 insertions(+), 51 deletions(-) delete mode 100644 src/views/coreDam/user/composables/cachedUsers.ts diff --git a/src/components/CachedDamUserChip.vue b/src/components/CachedDamUserChip.vue index 64c8306f..ab916a5a 100644 --- a/src/components/CachedDamUserChip.vue +++ b/src/components/CachedDamUserChip.vue @@ -2,8 +2,14 @@ import { computed, shallowRef, watch } from 'vue' import { ROUTE } from '@/router/routes' import { useRouter } from 'vue-router' -import { COMMON_CONFIG, type IntegerId, isNull, isUndefined, AAnzuUserAvatar } from '@anzusystems/common-admin' -import { useCachedUsers } from '@/views/coreDam/user/composables/cachedUsers' +import { + AAnzuUserAvatar, + COMMON_CONFIG, + type IntegerId, + isNull, + isUndefined, + useDamCachedUsers, +} from '@anzusystems/common-admin' import type { UserMinimal } from '@/types/coreDam/User' const props = withDefaults( @@ -17,7 +23,7 @@ const router = useRouter() const cached = shallowRef(undefined) const loaded = shallowRef(false) -const { getCachedUser } = useCachedUsers() +const { getCachedUser } = useDamCachedUsers() const item = computed(() => { return getCachedUser(props.id) diff --git a/src/views/coreDam/asset/components/AssetCreateButton.vue b/src/views/coreDam/asset/components/AssetCreateButton.vue index 37207f4c..3b3522a5 100644 --- a/src/views/coreDam/asset/components/AssetCreateButton.vue +++ b/src/views/coreDam/asset/components/AssetCreateButton.vue @@ -1,12 +1,13 @@