diff --git a/erpnext/public/js/hub/components/ItemCardsContainer.vue b/erpnext/public/js/hub/components/ItemCardsContainer.vue index 8014296fb1..4ccb9dcc0e 100644 --- a/erpnext/public/js/hub/components/ItemCardsContainer.vue +++ b/erpnext/public/js/hub/components/ItemCardsContainer.vue @@ -23,6 +23,11 @@ export default { item_id() { return this.is_local ? 'item_code' : 'hub_item_code'; } + }, + watch: { + items() { + frappe.dom.handle_broken_images($(this.$el)); + } } } diff --git a/erpnext/public/js/hub/components/PublishPage.vue b/erpnext/public/js/hub/components/PublishPage.vue index 06241d6bb3..2b2956f323 100644 --- a/erpnext/public/js/hub/components/PublishPage.vue +++ b/erpnext/public/js/hub/components/PublishPage.vue @@ -3,6 +3,12 @@ class="marketplace-page" :data-page-name="page_name" > + + + + diff --git a/erpnext/public/js/hub/pages/publish.js b/erpnext/public/js/hub/pages/publish.js index 741f080ac5..7b20907428 100644 --- a/erpnext/public/js/hub/pages/publish.js +++ b/erpnext/public/js/hub/pages/publish.js @@ -8,29 +8,32 @@ import PublishPage from '../components/PublishPage.vue'; erpnext.hub.Publish = class Publish { constructor(parent) { - this.items_data_to_publish = {}; - this.unpublished_items = []; - this.fetched_items = []; - this.fetched_items_dict = {}; - this.$wrapper = $(`
`).appendTo($(parent)); - frappe.app = new Vue({ - render: h => h(PublishPage), - mounted() { - console.log('Mounted For Publish page'); - }, + new Vue({ + render: h => h(PublishPage) }).$mount('#vue-area'); } show() { - this.$wrapper.show(); + $('[data-page-name="publish"]').show(); } hide() { - this.$wrapper.hide(); + $('[data-page-name="publish"]').hide(); } + + + + + + // this.items_data_to_publish = {}; + // this.unpublished_items = []; + // this.fetched_items = []; + // this.fetched_items_dict = {}; + + show_message(message) { this.$wrapper.prepend(NotificationMessage(message)); }