Skip to content

Commit

Permalink
Respect theme for external folder icon (#25487)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tipichris authored and VicDeo committed Aug 5, 2016
1 parent 0db0f8f commit 1fab0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_external/js/statusmanager.js
Expand Up @@ -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 $) {
Expand Down

0 comments on commit 1fab0da

Please sign in to comment.