Merge pull request #15309 from frappe/hub-multiuser

fix: Revert skeleton in Sidebar
This commit is contained in:
Faris Ansari 2018-09-04 10:43:52 +05:30 committed by GitHub
commit f8af7e0b3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,10 +9,7 @@
<li class="hub-sidebar-item is-title bold text-muted">
{{ __('Categories') }}
</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">
Category
</li>
<li class="hub-sidebar-item" v-else v-for="category in categories" :key="category.label" v-route="category.route">
<li class="hub-sidebar-item" v-for="category in categories" :key="category.label" v-route="category.route">
{{ category.label }}
</li>
</ul>
@ -59,15 +56,12 @@ export default {
condition: () => this.hub_registered
},
],
categories: [],
show_skeleton: true
categories: []
}
},
created() {
this.get_categories()
.then(categories => {
this.show_skeleton = false;
this.categories = categories.map(c => {
return {
label: __(c.name),