From bff2bdc858759a6b2124ae6bdbbbab73c158bc5f Mon Sep 17 00:00:00 2001 From: Prateeksha Singh Date: Thu, 30 Aug 2018 12:58:46 +0530 Subject: [PATCH] [hub] UI and empty state in 'your products' to guide on publishing --- .../js/hub/components/ItemCardsContainer.vue | 4 ++- .../public/js/hub/pages/PublishedProducts.vue | 30 +++++++++++++++++-- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/erpnext/public/js/hub/components/ItemCardsContainer.vue b/erpnext/public/js/hub/components/ItemCardsContainer.vue index 748c2720f9..0a20bcdc63 100644 --- a/erpnext/public/js/hub/components/ItemCardsContainer.vue +++ b/erpnext/public/js/hub/components/ItemCardsContainer.vue @@ -3,8 +3,9 @@ -
{{ page_title }}
+ +
+
{{ page_title }}
+

+ {{ published_items_message }} +

+
+ + + +
@@ -25,8 +42,17 @@ export default { items: [], item_id_fieldname: 'name', + publish_page_action: { + label: __('Publish Your First Items'), + on_click: () => { + frappe.set_route(`marketplace/home`); + } + }, + // Constants - page_title: __('Published Products'), + page_title: __('Published Items'), + publish_button_text: __('Publish More Items'), + published_items_message: __('You can publish upto 200 items.'), // TODO: Add empty state action empty_state_message: __(`You haven't published any products yet. Publish.`) };