Skip to content

Commit

Permalink
Respect theme for external folder icon (#25487) (#25711)
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
VicDeo authored and DeepDiver1975 committed Aug 9, 2016
1 parent 1a497b1 commit ee72c9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_external/js/statusmanager.js
Original file line number Diff line number Diff line change
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 ee72c9b

Please sign in to comment.