Skip to content

Commit bb1f27f

Browse files
authored
Merge pull request #46556 from nextcloud/fix/sidebar-types
fix(files): Typo in import of `ShareType`
2 parents 465cee2 + 16e1d2d commit bb1f27f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

apps/files/src/views/Sidebar.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ import { emit, subscribe, unsubscribe } from '@nextcloud/event-bus'
9393
import { File, Folder, formatFileSize } from '@nextcloud/files'
9494
import { encodePath } from '@nextcloud/paths'
9595
import { generateRemoteUrl, generateUrl } from '@nextcloud/router'
96-
import { ShareTypes } from '@nextcloud/sharing'
96+
import { ShareType } from '@nextcloud/sharing'
9797
import { mdiStar, mdiStarOutline } from '@mdi/js'
9898
import axios from '@nextcloud/axios'
9999
import $ from 'jquery'
@@ -345,8 +345,8 @@ export default {
345345
} else if (fileInfo.mountType !== undefined && fileInfo.mountType !== '') {
346346
return OC.MimeType.getIconUrl('dir-' + fileInfo.mountType)
347347
} else if (fileInfo.shareTypes && (
348-
fileInfo.shareTypes.indexOf(ShareTypes.SHARE_TYPE_LINK) > -1
349-
|| fileInfo.shareTypes.indexOf(ShareTypes.SHARE_TYPE_EMAIL) > -1)
348+
fileInfo.shareTypes.indexOf(ShareType.Link) > -1
349+
|| fileInfo.shareTypes.indexOf(ShareType.Email) > -1)
350350
) {
351351
return OC.MimeType.getIconUrl('dir-public')
352352
} else if (fileInfo.shareTypes && fileInfo.shareTypes.length > 0) {

0 commit comments

Comments
 (0)