From 11d01319c6e9a5fe25537006c352e836c803c2e0 Mon Sep 17 00:00:00 2001 From: Gary Kim Date: Sat, 5 Oct 2019 15:53:07 +0800 Subject: Show Delete Icon in Breadcrumb in Trashbin Signed-off-by: Gary Kim --- apps/files/js/breadcrumb.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/files/js/breadcrumb.js') diff --git a/apps/files/js/breadcrumb.js b/apps/files/js/breadcrumb.js index e1193e79b28..6521b8cf484 100644 --- a/apps/files/js/breadcrumb.js +++ b/apps/files/js/breadcrumb.js @@ -200,9 +200,10 @@ * Makes a breadcrumb structure based on the given path * * @param {String} dir path to split into a breadcrumb structure + * @param {String} [rootIcon=icon-home] icon to use for root * @return {Object.} map of {dir: path, name: displayName} */ - _makeCrumbs: function(dir) { + _makeCrumbs: function(dir, rootIcon) { var crumbs = []; var pathToHere = ''; // trim leading and trailing slashes @@ -221,7 +222,7 @@ name: t('core', 'Home'), dir: '/', class: 'crumbhome', - linkclass: 'icon-home' + linkclass: rootIcon || 'icon-home' }); for (var i = 0; i < parts.length; i++) { var part = parts[i]; -- cgit v1.2.3