diff options
author | Louis Chemineau <louis@chmn.me> | 2022-01-26 15:33:36 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-01-26 17:58:43 +0100 |
commit | be968a8841587f6e4034ff32880d1ceca4a827bd (patch) | |
tree | 359a57ca4304c25fdb04051519ab9c183686f488 /apps/files | |
parent | a145edd00db95135bee6f584e21301267fb5ac16 (diff) | |
download | nextcloud-server-be968a8841587f6e4034ff32880d1ceca4a827bd.tar.gz nextcloud-server-be968a8841587f6e4034ff32880d1ceca4a827bd.zip |
Use @nextcloud/sharing in files and files_sharing
Signed-off-by: Louis Chemineau <louis@chmn.me>
Update tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/src/views/Sidebar.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/src/views/Sidebar.vue b/apps/files/src/views/Sidebar.vue index a83cb8640eb..372a5b2c164 100644 --- a/apps/files/src/views/Sidebar.vue +++ b/apps/files/src/views/Sidebar.vue @@ -81,6 +81,7 @@ import $ from 'jquery' import axios from '@nextcloud/axios' import { emit } from '@nextcloud/event-bus' import moment from '@nextcloud/moment' +import { Type as ShareTypes } from '@nextcloud/sharing' import AppSidebar from '@nextcloud/vue/dist/Components/AppSidebar' import ActionButton from '@nextcloud/vue/dist/Components/ActionButton' @@ -323,8 +324,8 @@ export default { } else if (fileInfo.mountType !== undefined && fileInfo.mountType !== '') { return OC.MimeType.getIconUrl('dir-' + fileInfo.mountType) } else if (fileInfo.shareTypes && ( - fileInfo.shareTypes.indexOf(OC.Share.SHARE_TYPE_LINK) > -1 - || fileInfo.shareTypes.indexOf(OC.Share.SHARE_TYPE_EMAIL) > -1) + fileInfo.shareTypes.indexOf(ShareTypes.SHARE_TYPE_LINK) > -1 + || fileInfo.shareTypes.indexOf(ShareTypes.SHARE_TYPE_EMAIL) > -1) ) { return OC.MimeType.getIconUrl('dir-public') } else if (fileInfo.shareTypes && fileInfo.shareTypes.length > 0) { |