summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-09-15 21:11:38 +0200
committerGitHub <noreply@github.com>2019-09-15 21:11:38 +0200
commit7149ed74c1f7aaa022d349f892c4727b614b8ec6 (patch)
treeb30ea4ff40ed69905ee01ba592d43604c1e010cf /apps
parent978d312e69d8ae27601ed8ac0cfe7dadc6669442 (diff)
parentd1724cb665bb3282f76967a3f92374bb652403de (diff)
downloadnextcloud-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.js3
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'});