Skip to content

Commit

Permalink
fix(files_sharing): always show file request creation option
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
skjnldsv authored and nextcloud-command committed Jul 30, 2024
1 parent 197c355 commit 6427ae1
Show file tree
Hide file tree
Showing 130 changed files with 303 additions and 175 deletions.
10 changes: 3 additions & 7 deletions apps/files_sharing/src/new/newFileRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*/
import type { Entry, Folder, Node } from '@nextcloud/files'

import { Permission } from '@nextcloud/files'
import { translate as t } from '@nextcloud/l10n'
import FileUploadSvg from '@mdi/svg/svg/file-upload.svg?raw'
import Vue, { defineAsyncComponent } from 'vue'
Expand All @@ -21,12 +20,9 @@ export const entry = {
displayName: t('files_sharing', 'Create file request'),
iconSvgInline: FileUploadSvg,
order: 30,
enabled(context: Folder): boolean {
if ((context.permissions & Permission.SHARE) !== 0) {
// We need to have either link shares creation permissions
return sharingConfig.isPublicShareAllowed
}
return false
enabled(): boolean {
// We will check for the folder permission on the dialog
return sharingConfig.isPublicShareAllowed
},
async handler(context: Folder, content: Node[]) {
// Create document root
Expand Down
4 changes: 2 additions & 2 deletions dist/2812-2812.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dist/2812-2812.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ SPDX-FileCopyrightText: Roeland Jago Douma
SPDX-FileCopyrightText: Richie Bendall
SPDX-FileCopyrightText: Raynos <[email protected]>
SPDX-FileCopyrightText: Philipp Kewisch
SPDX-FileCopyrightText: Perry Mitchell <[email protected]>
SPDX-FileCopyrightText: Paul Vorbach <[email protected]> (http://paul.vorba.ch)
SPDX-FileCopyrightText: Paul Vorbach <[email protected]> (http://vorb.de)
SPDX-FileCopyrightText: OpenJS Foundation and other contributors
Expand All @@ -39,6 +40,7 @@ SPDX-FileCopyrightText: Mapbox
SPDX-FileCopyrightText: Joyent
SPDX-FileCopyrightText: Jordan Harband <[email protected]>
SPDX-FileCopyrightText: Jordan Harband
SPDX-FileCopyrightText: Jonas Schade <[email protected]>
SPDX-FileCopyrightText: John-David Dalton <[email protected]> (http://allyoucanleet.com/)
SPDX-FileCopyrightText: John Molakvoæ (skjnldsv) <[email protected]>
SPDX-FileCopyrightText: Jeff Sagal <[email protected]>
Expand Down Expand Up @@ -518,6 +520,9 @@ This file is generated from multiple sources. Included packages:
- trough
- version: 2.2.0
- license: MIT
- typescript-event-target
- version: 1.1.1
- license: MIT
- is-plain-obj
- version: 4.1.0
- license: MIT
Expand Down Expand Up @@ -569,6 +574,9 @@ This file is generated from multiple sources. Included packages:
- web-namespaces
- version: 2.0.1
- license: MIT
- webdav
- version: 5.6.0
- license: MIT
- which-typed-array
- version: 1.1.15
- license: MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/2812-2812.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/5963-5963.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dist/5963-5963.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ SPDX-FileCopyrightText: Sindre Sorhus
SPDX-FileCopyrightText: Roman Shtylman <[email protected]>
SPDX-FileCopyrightText: Roeland Jago Douma
SPDX-FileCopyrightText: Raynos <[email protected]>
SPDX-FileCopyrightText: Perry Mitchell <[email protected]>
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
SPDX-FileCopyrightText: Matt Zabriskie
SPDX-FileCopyrightText: Joyent
SPDX-FileCopyrightText: Jordan Harband <[email protected]>
SPDX-FileCopyrightText: Jordan Harband
SPDX-FileCopyrightText: Jonas Schade <[email protected]>
SPDX-FileCopyrightText: John-David Dalton <[email protected]> (http://allyoucanleet.com/)
SPDX-FileCopyrightText: John Molakvoæ <[email protected]>
SPDX-FileCopyrightText: John Molakvoæ (skjnldsv) <[email protected]>
Expand Down Expand Up @@ -240,12 +242,18 @@ This file is generated from multiple sources. Included packages:
- toastify-js
- version: 1.12.0
- license: MIT
- typescript-event-target
- version: 1.1.1
- license: MIT
- util
- version: 0.12.5
- license: MIT
- vue
- version: 2.7.16
- license: MIT
- webdav
- version: 5.6.0
- license: MIT
- which-typed-array
- version: 1.1.15
- license: MIT
2 changes: 1 addition & 1 deletion dist/5963-5963.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions dist/8755-8755.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/8755-8755.js.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/8755-8755.js.map.license

This file was deleted.

2 changes: 0 additions & 2 deletions dist/8832-8832.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/8832-8832.js.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/8832-8832.js.map.license

This file was deleted.

2 changes: 2 additions & 0 deletions dist/9306-9306.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dist/8755-8755.js.license → dist/9306-9306.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ SPDX-FileCopyrightText: Roeland Jago Douma
SPDX-FileCopyrightText: Rob Cresswell <[email protected]>
SPDX-FileCopyrightText: Raynos <[email protected]>
SPDX-FileCopyrightText: Philipp Kewisch
SPDX-FileCopyrightText: Perry Mitchell <[email protected]>
SPDX-FileCopyrightText: Paul Vorbach <[email protected]> (http://paul.vorba.ch)
SPDX-FileCopyrightText: Paul Vorbach <[email protected]> (http://vorb.de)
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
Expand All @@ -29,6 +30,7 @@ SPDX-FileCopyrightText: Julius Härtl <[email protected]>
SPDX-FileCopyrightText: Joyent
SPDX-FileCopyrightText: Jordan Harband <[email protected]>
SPDX-FileCopyrightText: Jordan Harband
SPDX-FileCopyrightText: Jonas Schade <[email protected]>
SPDX-FileCopyrightText: John-David Dalton <[email protected]> (http://allyoucanleet.com/)
SPDX-FileCopyrightText: John Molakvoæ (skjnldsv) <[email protected]>
SPDX-FileCopyrightText: Jerry Bendy <[email protected]>
Expand Down Expand Up @@ -304,6 +306,9 @@ This file is generated from multiple sources. Included packages:
- toastify-js
- version: 1.12.0
- license: MIT
- typescript-event-target
- version: 1.1.1
- license: MIT
- unist-builder
- version: 4.0.0
- license: MIT
Expand Down Expand Up @@ -331,6 +336,9 @@ This file is generated from multiple sources. Included packages:
- vue
- version: 2.7.16
- license: MIT
- webdav
- version: 5.6.0
- license: MIT
- which-typed-array
- version: 1.1.15
- license: MIT
Expand Down
1 change: 1 addition & 0 deletions dist/9306-9306.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/9306-9306.js.map.license
4 changes: 2 additions & 2 deletions dist/9480-9480.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dist/9480-9480.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ SPDX-FileCopyrightText: Roeland Jago Douma
SPDX-FileCopyrightText: Richie Bendall
SPDX-FileCopyrightText: Raynos <[email protected]>
SPDX-FileCopyrightText: Philipp Kewisch
SPDX-FileCopyrightText: Perry Mitchell <[email protected]>
SPDX-FileCopyrightText: Paul Vorbach <[email protected]> (http://paul.vorba.ch)
SPDX-FileCopyrightText: Paul Vorbach <[email protected]> (http://vorb.de)
SPDX-FileCopyrightText: OpenJS Foundation and other contributors
Expand All @@ -39,6 +40,7 @@ SPDX-FileCopyrightText: Mapbox
SPDX-FileCopyrightText: Joyent
SPDX-FileCopyrightText: Jordan Harband <[email protected]>
SPDX-FileCopyrightText: Jordan Harband
SPDX-FileCopyrightText: Jonas Schade <[email protected]>
SPDX-FileCopyrightText: John-David Dalton <[email protected]> (http://allyoucanleet.com/)
SPDX-FileCopyrightText: John Molakvoæ (skjnldsv) <[email protected]>
SPDX-FileCopyrightText: Jeff Sagal <[email protected]>
Expand Down Expand Up @@ -522,6 +524,9 @@ This file is generated from multiple sources. Included packages:
- trough
- version: 2.2.0
- license: MIT
- typescript-event-target
- version: 1.1.1
- license: MIT
- is-plain-obj
- version: 4.1.0
- license: MIT
Expand Down Expand Up @@ -570,6 +575,9 @@ This file is generated from multiple sources. Included packages:
- web-namespaces
- version: 2.0.1
- license: MIT
- webdav
- version: 5.6.0
- license: MIT
- which-typed-array
- version: 1.1.15
- license: MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/9480-9480.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/99-99.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dist/8832-8832.js.license → dist/99-99.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ SPDX-FileCopyrightText: Roman Shtylman <[email protected]>
SPDX-FileCopyrightText: Roeland Jago Douma
SPDX-FileCopyrightText: Rob Cresswell <[email protected]>
SPDX-FileCopyrightText: Raynos <[email protected]>
SPDX-FileCopyrightText: Perry Mitchell <[email protected]>
SPDX-FileCopyrightText: Paul Vorbach <[email protected]> (http://paul.vorba.ch)
SPDX-FileCopyrightText: Paul Vorbach <[email protected]> (http://vorb.de)
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
SPDX-FileCopyrightText: Matt Zabriskie
SPDX-FileCopyrightText: Joyent
SPDX-FileCopyrightText: Jordan Harband <[email protected]>
SPDX-FileCopyrightText: Jordan Harband
SPDX-FileCopyrightText: Jonas Schade <[email protected]>
SPDX-FileCopyrightText: John-David Dalton <[email protected]> (http://allyoucanleet.com/)
SPDX-FileCopyrightText: John Molakvoæ (skjnldsv) <[email protected]>
SPDX-FileCopyrightText: Jacob Clevenger<https://github.com/wheatjs>
Expand Down Expand Up @@ -260,6 +262,9 @@ This file is generated from multiple sources. Included packages:
- toastify-js
- version: 1.12.0
- license: MIT
- typescript-event-target
- version: 1.1.1
- license: MIT
- unist-builder
- version: 4.0.0
- license: MIT
Expand All @@ -284,6 +289,9 @@ This file is generated from multiple sources. Included packages:
- vue
- version: 2.7.16
- license: MIT
- webdav
- version: 5.6.0
- license: MIT
- which-typed-array
- version: 1.1.15
- license: MIT
Expand Down
1 change: 1 addition & 0 deletions dist/99-99.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/99-99.js.map.license
4 changes: 2 additions & 2 deletions dist/comments-comments-app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/comments-comments-app.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 6427ae1

Please sign in to comment.