summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-10-08 08:08:02 +0200
committerGitHub <noreply@github.com>2019-10-08 08:08:02 +0200
commite4948f5d86a7df2a683e288e55f6f626d90d7cf0 (patch)
tree7be20b70b052d73a62ed9c0de236f877b6b9d88c /apps/files
parent85dbde060d3c6a39b4b33112a32f7b18c9729075 (diff)
parent11d01319c6e9a5fe25537006c352e836c803c2e0 (diff)
downloadnextcloud-server-e4948f5d86a7df2a683e288e55f6f626d90d7cf0.tar.gz
nextcloud-server-e4948f5d86a7df2a683e288e55f6f626d90d7cf0.zip
Merge pull request #17414 from gary-kim/enh/15155/delete-icon-in-trashbin
Show Delete Icon in Breadcrumb in Trashbin
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/breadcrumb.js5
1 files changed, 3 insertions, 2 deletions
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.<String, String>} 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];