mirror of
https://github.com/nextcloud/server.git
synced 2026-03-24 11:24:37 -04:00
Use correct icon for dir-external-root
When an external storage mount is shared with circles, it triggers the share icon state to be rerendered. The picking of the mime type icon would use the regular file icon because there is no actual icon for "dir-external-root" that is shared. This fixes the logic to use the "folder-external" icon in such scenarios. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
parent
7936aec4fe
commit
fdf8cd17a2
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ OC.MimeType = {
|
|||
return 'folder-shared';
|
||||
} else if (mimeType === 'dir-public' && $.inArray('folder-public', files) !== -1) {
|
||||
return 'folder-public';
|
||||
} else if (mimeType === 'dir-external' && $.inArray('folder-external', files) !== -1) {
|
||||
} else if ((mimeType === 'dir-external' || mimeType === 'dir-external-root') && $.inArray('folder-external', files) !== -1) {
|
||||
return 'folder-external';
|
||||
} else if ($.inArray(icon, files) !== -1) {
|
||||
return icon;
|
||||
|
|
|
|||
Loading…
Reference in a new issue