diff --git a/erpnext/public/js/hub/PageContainer.vue b/erpnext/public/js/hub/PageContainer.vue index ca4c63a28a..794d4cb334 100644 --- a/erpnext/public/js/hub/PageContainer.vue +++ b/erpnext/public/js/hub/PageContainer.vue @@ -3,25 +3,37 @@ + diff --git a/erpnext/public/js/hub/components/DetailView.vue b/erpnext/public/js/hub/components/DetailView.vue index b86468b83b..eca31d1e51 100644 --- a/erpnext/public/js/hub/components/DetailView.vue +++ b/erpnext/public/js/hub/components/DetailView.vue @@ -31,16 +31,31 @@ -
+

{{ title }}

-

-

+
+ +
+ +
+
`).appendTo($(parent)); - - new Vue({ - render: h => h(Home) - }).$mount('#vue-area-home'); - } - - show() { - $('[data-page-name="home"]').show(); - } - - hide() { - $('[data-page-name="home"]').hide(); - } -} - -erpnext.hub.SavedProductsPage = class { - constructor(parent) { - this.$wrapper = $(`
`).appendTo($(parent)); - - new Vue({ - render: h => h(SavedProducts) - }).$mount('#vue-area-saved'); - } - - show() { - $('[data-page-name="saved-products"]').show(); - } - - hide() { - $('[data-page-name="saved-products"]').hide(); - } -} - -erpnext.hub.PublishPage = class { - constructor(parent) { - this.$wrapper = $(`
`).appendTo($(parent)); - - new Vue({ - render: h => h(Publish) - }).$mount('#vue-area'); - } - - show() { - $('[data-page-name="publish"]').show(); - } - - hide() { - $('[data-page-name="publish"]').hide(); - } - -} - -erpnext.hub.CategoryPage = class { - constructor(parent) { - this.$wrapper = $(`
`).appendTo($(parent)); - - new Vue({ - render: h => h(Category) - }).$mount('#vue-area-category'); - } - - show() { - $('[data-page-name="category"]').show(); - } - - hide() { - $('[data-page-name="category"]').hide(); - } -} - -erpnext.hub.PublishedProductsPage = class { - constructor(parent) { - this.$wrapper = $(`
`).appendTo($(parent)); - - new Vue({ - render: h => h(PublishedProducts) - }).$mount('#vue-area-published-products'); - } - - show() { - $('[data-page-name="published-products"]').show(); - } - - hide() { - $('[data-page-name="published-products"]').hide(); - } -} - -erpnext.hub.SearchPage = class { - constructor(parent) { - this.$wrapper = $(`