diff options
author | Robin Appelman <robin@icewind.nl> | 2017-04-26 14:53:11 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-04-28 09:38:21 +0200 |
commit | ab9a36e872173b34be2e678de0c452885e3b48d8 (patch) | |
tree | 76e34c578bfdde6ab46164f9e4227e4fe0cc351e /apps/files/js | |
parent | 9da697b11af2928a1470dcedc7ebf77e4a5f0730 (diff) | |
download | nextcloud-server-ab9a36e872173b34be2e678de0c452885e3b48d8.tar.gz nextcloud-server-ab9a36e872173b34be2e678de0c452885e3b48d8.zip |
allow apps to set custom mount types
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 6b5b5a2daef..047131f3d78 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1069,6 +1069,8 @@ return OC.MimeType.getIconUrl('dir-shared'); } else if (fileInfo.mountType === 'external-root') { return OC.MimeType.getIconUrl('dir-external'); + } else if (fileInfo.mountType !== '') { + return OC.MimeType.getIconUrl('dir-' + fileInfo.mountType); } return OC.MimeType.getIconUrl('dir'); } |