mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix(systemtags): no bulk action on public pages
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
parent
1940b4f5cd
commit
569f235560
3 changed files with 9 additions and 5 deletions
|
|
@ -5,8 +5,8 @@
|
|||
import { type Node } from '@nextcloud/files'
|
||||
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
import { getCurrentUser } from '@nextcloud/auth'
|
||||
import { FileAction } from '@nextcloud/files'
|
||||
import { isPublicShare } from '@nextcloud/sharing/public'
|
||||
import { spawnDialog } from '@nextcloud/dialogs'
|
||||
import { t } from '@nextcloud/l10n'
|
||||
|
||||
|
|
@ -30,12 +30,16 @@ export const action = new FileAction({
|
|||
|
||||
// If the app is disabled, the action is not available anyway
|
||||
enabled(nodes) {
|
||||
if (isPublicShare()) {
|
||||
return false
|
||||
}
|
||||
|
||||
if (nodes.length === 0) {
|
||||
return false
|
||||
}
|
||||
|
||||
// If the user is not logged in, the action is not available
|
||||
return getCurrentUser() !== null
|
||||
return true
|
||||
},
|
||||
|
||||
async exec(node: Node) {
|
||||
|
|
|
|||
4
dist/systemtags-init.js
vendored
4
dist/systemtags-init.js
vendored
File diff suppressed because one or more lines are too long
2
dist/systemtags-init.js.map
vendored
2
dist/systemtags-init.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue