adminforth 2.4.0-next.253 → 2.4.0-next.255
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,6 +16,7 @@ export const useCoreStore = defineStore('core', () => {
|
|
|
16
16
|
const record: Ref<any | null> = ref({});
|
|
17
17
|
const resource: Ref<AdminForthResourceCommon | null> = ref(null);
|
|
18
18
|
const userData: Ref<UserData | null> = ref(null);
|
|
19
|
+
const isResourceFetching = ref(false);
|
|
19
20
|
|
|
20
21
|
const resourceColumnsWithFilters = computed(() => {
|
|
21
22
|
if (!resource.value) {
|
|
@@ -172,6 +173,7 @@ export const useCoreStore = defineStore('core', () => {
|
|
|
172
173
|
// already fetched
|
|
173
174
|
return;
|
|
174
175
|
}
|
|
176
|
+
isResourceFetching.value = true;
|
|
175
177
|
resourceColumnsId.value = resourceId;
|
|
176
178
|
resourceColumnsError.value = '';
|
|
177
179
|
const res = await callAdminForthApi({
|
|
@@ -188,6 +190,7 @@ export const useCoreStore = defineStore('core', () => {
|
|
|
188
190
|
resource.value = res.resource;
|
|
189
191
|
resourceOptions.value = res.resource.options;
|
|
190
192
|
}
|
|
193
|
+
isResourceFetching.value = false;
|
|
191
194
|
}
|
|
192
195
|
|
|
193
196
|
async function getPublicConfig() {
|
|
@@ -239,5 +242,6 @@ export const useCoreStore = defineStore('core', () => {
|
|
|
239
242
|
fetchMenuBadges,
|
|
240
243
|
resetAdminUser,
|
|
241
244
|
resetResource,
|
|
245
|
+
isResourceFetching,
|
|
242
246
|
}
|
|
243
247
|
})
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
</Teleport>
|
|
11
11
|
|
|
12
12
|
<component
|
|
13
|
+
v-if="!coreStore.isResourceFetching && !initInProcess"
|
|
13
14
|
v-for="c in coreStore?.resourceOptions?.pageInjections?.list?.beforeBreadcrumbs || []"
|
|
14
15
|
:is="getCustomComponent(c)"
|
|
15
16
|
:meta="(c as AdminForthComponentDeclarationFull).meta"
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
|
|
20
21
|
<BreadcrumbsWithButtons>
|
|
21
22
|
<component
|
|
23
|
+
v-if="!coreStore.isResourceFetching && !initInProcess"
|
|
22
24
|
v-for="c in coreStore?.resourceOptions?.pageInjections?.list?.beforeActionButtons || []"
|
|
23
25
|
:is="getCustomComponent(c)"
|
|
24
26
|
:meta="(c as AdminForthComponentDeclarationFull).meta"
|
|
@@ -98,6 +100,7 @@
|
|
|
98
100
|
</button>
|
|
99
101
|
|
|
100
102
|
<ThreeDotsMenu
|
|
103
|
+
v-if="!coreStore.isResourceFetching && !initInProcess"
|
|
101
104
|
:threeDotsDropdownItems="(coreStore.resourceOptions?.pageInjections?.list?.threeDotsDropdownItems as [])"
|
|
102
105
|
:bulkActions="coreStore.resource?.options?.bulkActions"
|
|
103
106
|
:checkboxes="checkboxes"
|
|
@@ -108,6 +111,7 @@
|
|
|
108
111
|
</BreadcrumbsWithButtons>
|
|
109
112
|
|
|
110
113
|
<component
|
|
114
|
+
v-if="!coreStore.isResourceFetching && !initInProcess"
|
|
111
115
|
v-for="c in coreStore?.resourceOptions?.pageInjections?.list?.afterBreadcrumbs || []"
|
|
112
116
|
:is="getCustomComponent(c)"
|
|
113
117
|
:meta="(c as AdminForthComponentDeclarationFull).meta"
|