]> source.dussan.org Git - nextcloud-server.git/commitdiff
Show theming icons on external storage folders 2620/head
authorJulius Haertl <jus@bitgrid.net>
Fri, 9 Dec 2016 11:50:14 +0000 (12:50 +0100)
committerJulius Haertl <jus@bitgrid.net>
Mon, 12 Dec 2016 11:18:38 +0000 (12:18 +0100)
Signed-off-by: Julius Haertl <jus@bitgrid.net>
apps/files_external/js/statusmanager.js

index 4869e663a0a72905be0638be56c12b614ff0eb04..782b0b082888e8384166a58f36d97ad2e4b95f80 100644 (file)
@@ -539,7 +539,11 @@ OCA.External.StatusManager.Utils = {
         * of the tr matching the folder name
         */
        getIconRoute: function (tr) {
-               var icon = OC.imagePath('core', 'filetypes/folder-external');
+               if (OCA.Theming) {
+                       var icon = OC.generateUrl('/apps/theming/img/core/filetypes/folder-external.svg?v=' + OCA.Theming.cacheBuster);
+               } else {
+                       var icon = OC.imagePath('core', 'filetypes/folder-external');
+               }
                var backend = null;
 
                if (tr instanceof $) {