diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-21 12:21:27 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-24 17:06:01 +0200 |
commit | ac65a520b4d860b2e5e4a5de8f6c9481b8ed19a1 (patch) | |
tree | 27cfb7c0cb7d9606777db56c3c643311c8d82cc6 /apps | |
parent | cd464e6ace29ffd60f203e0d7f4ea17198e0a3bd (diff) | |
download | nextcloud-server-ac65a520b4d860b2e5e4a5de8f6c9481b8ed19a1.tar.gz nextcloud-server-ac65a520b4d860b2e5e4a5de8f6c9481b8ed19a1.zip |
fix(files): Adjust import of `ShareType`
There must have been a backport that was not 100% correct,
the exported name is called `ShareType` (without s).
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/src/views/Sidebar.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/src/views/Sidebar.vue b/apps/files/src/views/Sidebar.vue index 35afbb76432..c76cfc45af5 100644 --- a/apps/files/src/views/Sidebar.vue +++ b/apps/files/src/views/Sidebar.vue @@ -110,7 +110,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' @@ -361,8 +361,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.Link) > -1 + || fileInfo.shareTypes.indexOf(ShareType.Email) > -1) ) { return OC.MimeType.getIconUrl('dir-public') } else if (fileInfo.shareTypes && fileInfo.shareTypes.length > 0) { |