aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FilesListHeaderActions.vue
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-04-21 15:40:27 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-04-21 15:49:54 +0200
commit1de3666e16af8362789d7a000c93b9aea1229c12 (patch)
treeba0a961078cf69f8a10e140b5197f8271793e05f /apps/files/src/components/FilesListHeaderActions.vue
parent6e29560475f328f3f2cfe908895287f9c095eadd (diff)
downloadnextcloud-server-1de3666e16af8362789d7a000c93b9aea1229c12.tar.gz
nextcloud-server-1de3666e16af8362789d7a000c93b9aea1229c12.zip
feat(files): add dir file action parameter
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/src/components/FilesListHeaderActions.vue')
-rw-r--r--apps/files/src/components/FilesListHeaderActions.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/src/components/FilesListHeaderActions.vue b/apps/files/src/components/FilesListHeaderActions.vue
index a53a1d041bf..f8c60a5cd1b 100644
--- a/apps/files/src/components/FilesListHeaderActions.vue
+++ b/apps/files/src/components/FilesListHeaderActions.vue
@@ -103,6 +103,10 @@ export default Vue.extend({
},
computed: {
+ dir() {
+ // Remove any trailing slash but leave root slash
+ return (this.$route?.query?.dir || '/').replace(/^(.+)\/$/, '$1')
+ },
enabledActions() {
return actions
.filter(action => action.execBatch)
@@ -165,7 +169,7 @@ export default Vue.extend({
})
// Dispatch action execution
- const results = await action.execBatch(this.nodes, this.currentView)
+ const results = await action.execBatch(this.nodes, this.currentView, this.dir)
// Check if all actions returned null
if (!results.some(result => result !== null)) {