From 5ca9f0a206e8da4da6880c153396419b317a2758 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 16 Mar 2021 12:51:13 +0530 Subject: [PATCH] fix(minor): Awesomebar label for workspaces, Redesign Issue --- frappe/public/js/frappe/ui/toolbar/search_utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frappe/public/js/frappe/ui/toolbar/search_utils.js b/frappe/public/js/frappe/ui/toolbar/search_utils.js index 88395e9e96..fdc2efefde 100644 --- a/frappe/public/js/frappe/ui/toolbar/search_utils.js +++ b/frappe/public/js/frappe/ui/toolbar/search_utils.js @@ -40,7 +40,7 @@ frappe.search.utils = { frappe.route_history.forEach(function(route, i) { if(route[0]==='Form') { values.push([route[2], route]); - } else if(['List', 'Tree', 'modules', 'query-report'].includes(route[0]) || route[2]==='Report') { + } else if(['List', 'Tree', 'Workspaces', 'query-report'].includes(route[0]) || route[2]==='Report') { if(route[1]) { values.push([route[1], route]); } @@ -61,9 +61,9 @@ frappe.search.utils = { out.label = __(match[1][1]).bold(); out.value = __(match[1][1]); } - } else if (['List', 'Tree', 'modules', 'query-report'].includes(match[1][0]) && (match[1].length > 1)) { + } else if (['List', 'Tree', 'Workspaces', 'query-report'].includes(match[1][0]) && (match[1].length > 1)) { var type = match[1][0], label = type; - if(type==='modules') label = 'Module'; + if(type==='Workspaces') label = 'Workspace'; else if(type==='query-report' || match[1][2] ==='Report') label = 'Report'; out.label = __(match[1][1]).bold() + " " + __(label); out.value = __(match[1][1]) + " " + __(label);