diff --git a/erpnext/public/js/hub/Sidebar.vue b/erpnext/public/js/hub/Sidebar.vue index 164e78d30d..be2b749b81 100644 --- a/erpnext/public/js/hub/Sidebar.vue +++ b/erpnext/public/js/hub/Sidebar.vue @@ -9,7 +9,10 @@
  • {{ __('Categories') }}
  • -
  • +
  • + Category +
  • +
  • {{ category.label }}
  • @@ -57,11 +60,14 @@ export default { }, ], categories: [], + show_skeleton: true } }, created() { this.get_categories() .then(categories => { + this.show_skeleton = false; + this.categories = categories.map(c => { return { label: __(c.name), diff --git a/erpnext/public/js/hub/pages/Home.vue b/erpnext/public/js/hub/pages/Home.vue index 4f9796d297..9cf0bf4629 100644 --- a/erpnext/public/js/hub/pages/Home.vue +++ b/erpnext/public/js/hub/pages/Home.vue @@ -9,7 +9,18 @@ v-model="search_value" /> -
    +
    + +

    Explore Explore Explore

    +
    +
    +
    +
    +
    +
    +
    + +

    {{ section.title }}

    @@ -36,6 +47,7 @@ export default { search_value: '', sections: [], + show_skeleton: true, // Constants search_placeholder: __('Search for anything ...'), @@ -52,6 +64,8 @@ export default { country: frappe.defaults.get_user_default('country') }) .then((data) => { + this.show_skeleton = false; + this.sections.push({ title: __('Explore'), items: data.random_items