From 8072eee5aed1bf2b99046f74c96efc77fef0e9b9 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 13 Jan 2022 12:56:26 +0530 Subject: [PATCH] fix: while deleting page save customization button should not be visible --- frappe/public/js/frappe/views/workspace/workspace.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/views/workspace/workspace.js b/frappe/public/js/frappe/views/workspace/workspace.js index 41886695f3..b77a8d4d25 100644 --- a/frappe/public/js/frappe/views/workspace/workspace.js +++ b/frappe/public/js/frappe/views/workspace/workspace.js @@ -288,7 +288,6 @@ frappe.views.Workspace = class Workspace { let current_page = pages.filter(p => p.title == page.name)[0]; this.content = current_page && JSON.parse(current_page.content); - this.setup_actions(page); this.add_custom_cards_in_content(); $('.item-anchor').addClass('disable-click'); @@ -299,6 +298,8 @@ frappe.views.Workspace = class Workspace { await frappe.after_ajax(() => this.get_data(current_page)); } + this.setup_actions(page); + this.prepare_editorjs(); $('.item-anchor').removeClass('disable-click'); @@ -709,6 +710,7 @@ frappe.views.Workspace = class Workspace { args: { page: page } }); + this.page.clear_primary_action(); this.update_cached_values(page); if (this.current_page.name == page.title && this.current_page.public == page.public) {