diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-09-15 21:11:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-15 21:11:38 +0200 |
commit | 7149ed74c1f7aaa022d349f892c4727b614b8ec6 (patch) | |
tree | b30ea4ff40ed69905ee01ba592d43604c1e010cf /apps | |
parent | 978d312e69d8ae27601ed8ac0cfe7dadc6669442 (diff) | |
parent | d1724cb665bb3282f76967a3f92374bb652403de (diff) | |
download | nextcloud-server-7149ed74c1f7aaa022d349f892c4727b614b8ec6.tar.gz nextcloud-server-7149ed74c1f7aaa022d349f892c4727b614b8ec6.zip |
Merge pull request #16976 from nextcloud/bugfix/noid/directory-icon-mount
Always use the folder icon depending on the mount type if not a share mount
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/mainfileinfodetailview.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/js/mainfileinfodetailview.js b/apps/files/js/mainfileinfodetailview.js index 4a2067e09e5..f73b6a55568 100644 --- a/apps/files/js/mainfileinfodetailview.js +++ b/apps/files/js/mainfileinfodetailview.js @@ -186,6 +186,9 @@ this._previewManager.loadPreview(this.model, $iconDiv, $container); } else { var iconUrl = this.model.get('icon') || OC.MimeType.getIconUrl('dir'); + if (typeof this.model.get('mountType') !== 'undefined') { + iconUrl = OC.MimeType.getIconUrl('dir-' + this.model.get('mountType')) + } $iconDiv.css('background-image', 'url("' + iconUrl + '")'); } this.$el.find('[title]').tooltip({placement: 'bottom'}); |