Skip to content

Commit c80cd4d

Browse files
skjnldsvbackportbot[bot]
authored andcommitted
fix(files): disable Unshare until proper fix
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 parent 787b2a3 commit c80cd4d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

apps/files/src/actions/deleteAction.spec.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@ describe('Delete action conditions tests', () => {
7171
expect(action.displayName([file], trashbinView)).toBe('Delete permanently')
7272
})
7373

74-
test('Shared node values', () => {
75-
jest.spyOn(auth, 'getCurrentUser').mockReturnValue(null)
76-
expect(action.displayName([file2], view)).toBe('Unshare')
77-
})
74+
// TODO: Fix this test
75+
// test('Shared node values', () => {
76+
// jest.spyOn(auth, 'getCurrentUser').mockReturnValue(null)
77+
// expect(action.displayName([file2], view)).toBe('Unshare')
78+
// })
7879

7980
test('Shared and owned nodes values', () => {
8081
expect(action.displayName([file, file2], view)).toBe('Delete and unshare')

apps/files/src/actions/deleteAction.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ export const action = new FileAction({
4646
return t('files', 'Delete and unshare')
4747
}
4848

49-
if (isAllUnshare(nodes)) {
50-
return t('files', 'Unshare')
51-
}
49+
// Temporary disabled until fixed on 28.0.3
50+
// if (isAllUnshare(nodes)) {
51+
// return t('files', 'Unshare')
52+
// }
5253

5354
return view.id === 'trashbin'
5455
? t('files', 'Delete permanently')

0 commit comments

Comments
 (0)