aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/utils/SharedWithMe.js
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-01-26 15:33:36 +0100
committerLouis Chemineau <louis@chmn.me>2022-01-26 17:58:43 +0100
commitbe968a8841587f6e4034ff32880d1ceca4a827bd (patch)
tree359a57ca4304c25fdb04051519ab9c183686f488 /apps/files_sharing/src/utils/SharedWithMe.js
parenta145edd00db95135bee6f584e21301267fb5ac16 (diff)
downloadnextcloud-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_sharing/src/utils/SharedWithMe.js')
-rw-r--r--apps/files_sharing/src/utils/SharedWithMe.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_sharing/src/utils/SharedWithMe.js b/apps/files_sharing/src/utils/SharedWithMe.js
index 9a063e423cf..bd39c765221 100644
--- a/apps/files_sharing/src/utils/SharedWithMe.js
+++ b/apps/files_sharing/src/utils/SharedWithMe.js
@@ -21,8 +21,10 @@
*
*/
+import { Type as ShareTypes } from '@nextcloud/sharing'
+
const shareWithTitle = function(share) {
- if (share.type === OC.Share.SHARE_TYPE_GROUP) {
+ if (share.type === ShareTypes.SHARE_TYPE_GROUP) {
return t(
'files_sharing',
'Shared with you and the group {group} by {owner}',
@@ -33,7 +35,7 @@ const shareWithTitle = function(share) {
undefined,
{ escape: false }
)
- } else if (share.type === OC.Share.SHARE_TYPE_CIRCLE) {
+ } else if (share.type === ShareTypes.SHARE_TYPE_CIRCLE) {
return t(
'files_sharing',
'Shared with you and {circle} by {owner}',
@@ -44,7 +46,7 @@ const shareWithTitle = function(share) {
undefined,
{ escape: false }
)
- } else if (share.type === OC.Share.SHARE_TYPE_ROOM) {
+ } else if (share.type === ShareTypes.SHARE_TYPE_ROOM) {
if (share.shareWithDisplayName) {
return t(
'files_sharing',