Merge pull request #15309 from frappe/hub-multiuser
fix: Revert skeleton in Sidebar
This commit is contained in:
commit
f8af7e0b3d
@ -9,10 +9,7 @@
|
|||||||
<li class="hub-sidebar-item is-title bold text-muted">
|
<li class="hub-sidebar-item is-title bold text-muted">
|
||||||
{{ __('Categories') }}
|
{{ __('Categories') }}
|
||||||
</li>
|
</li>
|
||||||
<li v-if="show_skeleton" class="hub-skeleton hub-sidebar-item" v-for="(c, $index) in [1, 2, 3, 4, 5, 6, 7]" :key="$index">
|
<li class="hub-sidebar-item" v-for="category in categories" :key="category.label" v-route="category.route">
|
||||||
Category
|
|
||||||
</li>
|
|
||||||
<li class="hub-sidebar-item" v-else v-for="category in categories" :key="category.label" v-route="category.route">
|
|
||||||
{{ category.label }}
|
{{ category.label }}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -59,15 +56,12 @@ export default {
|
|||||||
condition: () => this.hub_registered
|
condition: () => this.hub_registered
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
categories: [],
|
categories: []
|
||||||
show_skeleton: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.get_categories()
|
this.get_categories()
|
||||||
.then(categories => {
|
.then(categories => {
|
||||||
this.show_skeleton = false;
|
|
||||||
|
|
||||||
this.categories = categories.map(c => {
|
this.categories = categories.map(c => {
|
||||||
return {
|
return {
|
||||||
label: __(c.name),
|
label: __(c.name),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user