Skip to content

Commit f3926a1

Browse files
committed
fix: k-page-tree loading spinner
1 parent 3b3ba03 commit f3926a1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

panel/src/components/Navigation/PageTree.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ export default {
3030
if (this.items) {
3131
this.state = this.items;
3232
} else {
33+
// temporarily add an item to show loading spinner
34+
this.state = [{ icon: "loader" }];
35+
3336
// load top-level items (e.g. only site)
3437
const items = await this.load(null);
3538
await this.open(items[0]);

0 commit comments

Comments
 (0)