From 1fab0da7cd0d1754f8f1830c4f7327111bb4c287 Mon Sep 17 00:00:00 2001 From: Chris Hastie Date: Fri, 5 Aug 2016 07:22:10 +0100 Subject: [PATCH] Respect theme for external folder icon (#25487) See issue #25461. When using a theme with alternative filetype icons `OCA.External.StatusManager.Utils.getIconRoute` should respect that, rather than hard coding the default icon. Note this change does not affect windows_network_drive and sharepoint icons, which appear not to be easily themeable. --- apps/files_external/js/statusmanager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_external/js/statusmanager.js b/apps/files_external/js/statusmanager.js index 91974f2d04d6..bfb9a950c6b4 100644 --- a/apps/files_external/js/statusmanager.js +++ b/apps/files_external/js/statusmanager.js @@ -537,7 +537,7 @@ OCA.External.StatusManager.Utils = { * of the tr matching the folder name */ getIconRoute: function (tr) { - var icon = OC.imagePath('core', 'filetypes/folder-external'); + var icon = OC.MimeType.getIconUrl('dir-external'); var backend = null; if (tr instanceof $) {