diff options
author | nfebe <fenn25.fn@gmail.com> | 2024-11-18 17:34:55 +0100 |
---|---|---|
committer | nfebe <fenn25.fn@gmail.com> | 2024-12-03 14:25:15 +0100 |
commit | d6efc531f6999b90330ec62869261be97dbe823f (patch) | |
tree | a2e0982af1312950cd88eaf7c3a8a3eada40c857 /apps/files_sharing/src/sharebreadcrumbview.js | |
parent | f1754ee2e1a3c977d05d31c61adb195b9f50fee8 (diff) | |
download | nextcloud-server-d6efc531f6999b90330ec62869261be97dbe823f.tar.gz nextcloud-server-d6efc531f6999b90330ec62869261be97dbe823f.zip |
refactor: Use new `ShareType` across file_sharing
Signed-off-by: nfebe <fenn25.fn@gmail.com>
Diffstat (limited to 'apps/files_sharing/src/sharebreadcrumbview.js')
-rw-r--r-- | apps/files_sharing/src/sharebreadcrumbview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/src/sharebreadcrumbview.js b/apps/files_sharing/src/sharebreadcrumbview.js index 063881e2fe0..68ea75d4df9 100644 --- a/apps/files_sharing/src/sharebreadcrumbview.js +++ b/apps/files_sharing/src/sharebreadcrumbview.js @@ -3,7 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -import { Type as ShareTypes } from '@nextcloud/sharing' +import { ShareType } from '@nextcloud/sharing' (function() { 'use strict' @@ -23,7 +23,7 @@ import { Type as ShareTypes } from '@nextcloud/sharing' this.$el.removeClass('shared icon-public icon-shared') if (isShared) { this.$el.addClass('shared') - if (data.dirInfo.shareTypes.indexOf(ShareTypes.SHARE_TYPE_LINK) !== -1) { + if (data.dirInfo.shareTypes.indexOf(ShareType.Link) !== -1) { this.$el.addClass('icon-public') } else { this.$el.addClass('icon-shared') |