`).appendTo($(parent));
- if(data.progress_percent === 100 || data.progress_percent === '100') {
- setTimeout(() => {
- hub.settings.sync_in_progress = 0;
- frappe.db.get_doc('Hub Settings')
- .then(doc => {
- hub.settings = doc;
- this.refresh();
- });
- }, 500);
- }
- });
+ frappe.app = new Vue({
+ render: h => h(PublishPage),
+ mounted() {
+ console.log('Mounted For Publish page');
+ },
+ }).$mount('#vue-area');
+ }
+
+ show() {
+ this.$wrapper.show();
+ }
+
+ hide() {
+ this.$wrapper.hide();
+ }
+
+ show_message(message) {
+ this.$wrapper.prepend(NotificationMessage(message));
}
refresh() {
diff --git a/erpnext/public/js/hub/pages/subpage.js b/erpnext/public/js/hub/pages/subpage.js
index c8334462cca..cded17985f9 100644
--- a/erpnext/public/js/hub/pages/subpage.js
+++ b/erpnext/public/js/hub/pages/subpage.js
@@ -28,7 +28,10 @@ export default class SubPage {
make_wrapper() {
const page_name = frappe.get_route()[1];
- this.$wrapper = $(`
`).appendTo(this.$parent);
+ this.$wrapper = $(`
`
+ ).appendTo(this.$parent);
+
this.hide();
}