aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-07-17 16:39:46 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-07-17 16:39:46 +0200
commit37d085901b5eec59d1cf79356c7e8656599bc638 (patch)
treece5ff5df7a0d8ee3e60395b494bcee912484dc8a
parent2e1cc2d825c94cdbec93af303ab21da4bf9c3715 (diff)
parentb0f21c0a4312186bed11037d0856b5e469ce7671 (diff)
downloadnextcloud-server-37d085901b5eec59d1cf79356c7e8656599bc638.tar.gz
nextcloud-server-37d085901b5eec59d1cf79356c7e8656599bc638.zip
Merge pull request #17706 from rullzer/external_diricon_filelist
The external directories should get the correct icon in filelist
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index a3fd605ff7e..183b5e909a6 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -685,6 +685,10 @@
if (type === 'dir') {
mime = mime || 'httpd/unix-directory';
+
+ if (fileData.mountType && fileData.mountType.indexOf('external') === 0) {
+ icon = OC.MimeType.getIconUrl('dir-external');
+ }
}
//containing tr