From 3bc5e99a2cdceb3bd09c0349882005332c748722 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 16 Jul 2024 12:03:00 +0200 Subject: [PATCH] fix(files): Typo in import of `ShareType` Signed-off-by: Ferdinand Thiessen --- apps/files/src/views/Sidebar.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/files/src/views/Sidebar.vue b/apps/files/src/views/Sidebar.vue index 5eab07ca86265..d02e75403120a 100644 --- a/apps/files/src/views/Sidebar.vue +++ b/apps/files/src/views/Sidebar.vue @@ -93,7 +93,7 @@ import { emit, subscribe, unsubscribe } from '@nextcloud/event-bus' import { File, Folder, formatFileSize } from '@nextcloud/files' import { encodePath } from '@nextcloud/paths' import { generateRemoteUrl, generateUrl } from '@nextcloud/router' -import { ShareTypes } from '@nextcloud/sharing' +import { ShareType } from '@nextcloud/sharing' import { mdiStar, mdiStarOutline } from '@mdi/js' import axios from '@nextcloud/axios' import $ from 'jquery' @@ -345,8 +345,8 @@ export default { } else if (fileInfo.mountType !== undefined && fileInfo.mountType !== '') { return OC.MimeType.getIconUrl('dir-' + fileInfo.mountType) } else if (fileInfo.shareTypes && ( - fileInfo.shareTypes.indexOf(ShareTypes.SHARE_TYPE_LINK) > -1 - || fileInfo.shareTypes.indexOf(ShareTypes.SHARE_TYPE_EMAIL) > -1) + fileInfo.shareTypes.indexOf(ShareType.SHARE_TYPE_LINK) > -1 + || fileInfo.shareTypes.indexOf(ShareType.SHARE_TYPE_EMAIL) > -1) ) { return OC.MimeType.getIconUrl('dir-public') } else if (fileInfo.shareTypes && fileInfo.shareTypes.length > 0) {