aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/sharebreadcrumbview.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/sharebreadcrumbview.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/sharebreadcrumbview.js')
-rw-r--r--apps/files_sharing/src/sharebreadcrumbview.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/src/sharebreadcrumbview.js b/apps/files_sharing/src/sharebreadcrumbview.js
index 6addbb592ac..ef04c9c029d 100644
--- a/apps/files_sharing/src/sharebreadcrumbview.js
+++ b/apps/files_sharing/src/sharebreadcrumbview.js
@@ -22,6 +22,8 @@
*
*/
+import { Type as ShareTypes } from '@nextcloud/sharing'
+
(function() {
'use strict'
@@ -40,7 +42,7 @@
this.$el.removeClass('shared icon-public icon-shared')
if (isShared) {
this.$el.addClass('shared')
- if (data.dirInfo.shareTypes.indexOf(OC.Share.SHARE_TYPE_LINK) !== -1) {
+ if (data.dirInfo.shareTypes.indexOf(ShareTypes.SHARE_TYPE_LINK) !== -1) {
this.$el.addClass('icon-public')
} else {
this.$el.addClass('icon-shared')