From 260d93e5f2e40f4da95a028c2171f0f0e0e4550f Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Tue, 3 Sep 2019 10:07:27 +0200 Subject: Fallback to directory icon based on the mount type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files/js/mainfileinfodetailview.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps') 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'}); -- cgit v1.2.3