diff --git a/erpnext/public/js/hub/marketplace.js b/erpnext/public/js/hub/marketplace.js index 7363afb912..741f2280bc 100644 --- a/erpnext/public/js/hub/marketplace.js +++ b/erpnext/public/js/hub/marketplace.js @@ -204,6 +204,10 @@ class SubPage { this.hide(); } + empty() { + this.$wrapper.empty(); + } + show() { this.refresh(); this.$wrapper.show(); @@ -325,6 +329,7 @@ erpnext.hub.SearchPage = class SearchPage extends SubPage { erpnext.hub.Item = class Item extends SubPage { refresh() { + this.show_skeleton(); this.hub_item_code = frappe.get_route()[2]; this.get_item(this.hub_item_code) @@ -334,6 +339,30 @@ erpnext.hub.Item = class Item extends SubPage { }); } + show_skeleton() { + const skeleton = `
Details
+Ratings
+Desc
+Desc
+