Skip to content

Commit 83040a3

Browse files
committed
fix: prevent rendering components during resource fetching when initialization is in process
1 parent e4c1a13 commit 83040a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adminforth/spa/src/views/ListView.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</Teleport>
1111

1212
<component
13-
v-if="!coreStore.isResourceFetching"
13+
v-if="!coreStore.isResourceFetching && !initInProcess"
1414
v-for="c in coreStore?.resourceOptions?.pageInjections?.list?.beforeBreadcrumbs || []"
1515
:is="getCustomComponent(c)"
1616
:meta="(c as AdminForthComponentDeclarationFull).meta"
@@ -20,7 +20,7 @@
2020

2121
<BreadcrumbsWithButtons>
2222
<component
23-
v-if="!coreStore.isResourceFetching"
23+
v-if="!coreStore.isResourceFetching && !initInProcess"
2424
v-for="c in coreStore?.resourceOptions?.pageInjections?.list?.beforeActionButtons || []"
2525
:is="getCustomComponent(c)"
2626
:meta="(c as AdminForthComponentDeclarationFull).meta"
@@ -100,7 +100,7 @@
100100
</button>
101101

102102
<ThreeDotsMenu
103-
v-if="!coreStore.isResourceFetching"
103+
v-if="!coreStore.isResourceFetching && !initInProcess"
104104
:threeDotsDropdownItems="(coreStore.resourceOptions?.pageInjections?.list?.threeDotsDropdownItems as [])"
105105
:bulkActions="coreStore.resource?.options?.bulkActions"
106106
:checkboxes="checkboxes"
@@ -111,7 +111,7 @@
111111
</BreadcrumbsWithButtons>
112112

113113
<component
114-
v-if="!coreStore.isResourceFetching"
114+
v-if="!coreStore.isResourceFetching && !initInProcess"
115115
v-for="c in coreStore?.resourceOptions?.pageInjections?.list?.afterBreadcrumbs || []"
116116
:is="getCustomComponent(c)"
117117
:meta="(c as AdminForthComponentDeclarationFull).meta"

0 commit comments

Comments
 (0)