Skip to content

Commit 77fcd86

Browse files
committed
fix: Display the loading for sidebar
1 parent 16a7576 commit 77fcd86

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

xmcl-keystone-ui/src/views/AppSideBarContentNext.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
dense
66
class="ml-1 flex-grow-0 justify-start overflow-auto px-2"
77
>
8+
<template v-if="isValidating">
9+
<v-skeleton-loader
10+
v-for="i in 5"
11+
:key="i"
12+
class="non-moveable my-2 ml-[6px]"
13+
type="avatar"
14+
/>
15+
</template>
816
<AppSideBarInstanceItem
917
v-for="(i, index) of instances"
1018
:key="i.path + ' ' + index"
@@ -61,7 +69,7 @@ const { t } = useI18n()
6169
const sideBarShowCurseforge = useLocalStorageCacheBool('sideBarShowCurseforge', true)
6270
const sideBarShowModrinth = useLocalStorageCacheBool('sideBarShowModrinth', true)
6371
const sideBarShowFtb = useLocalStorageCacheBool('sideBarShowFtb', true)
64-
const { instances, setToPrevious } = injection(kInstances)
72+
const { instances, setToPrevious, isValidating } = injection(kInstances)
6573
const { showOpenDialog } = windowController
6674
const { addExternalInstance } = useService(InstanceServiceKey)
6775

0 commit comments

Comments
 (0)