Isomorphic marketplace (#15384)

* feat: Make marketplace run on hub server in Guest mode

* fix: Skip page actions on server

* fix: Limit PageContainer to marketplace route

* fix(eslint): Add hub variable to globals
This commit is contained in:
Faris Ansari
2018-09-11 17:38:31 +05:30
committed by Nabin Hait
parent ede924c4a2
commit 76b31deda5
7 changed files with 52 additions and 22 deletions

View File

@@ -53,8 +53,10 @@ export default {
},
mounted() {
frappe.route.on('change', () => {
this.set_current_page();
frappe.utils.scroll_to(0);
if (frappe.get_route()[0] === 'marketplace') {
this.set_current_page();
frappe.utils.scroll_to(0);
}
});
},
methods: {