+
+
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));
}