aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FilesListHeaderActions.vue
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-04-11 09:31:30 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-04-11 14:38:53 +0200
commitb7df4196e2883da9028f8c5d646fbbf5ae10cf49 (patch)
treebf25c4448b898ca83e0671a3d4888573b5550e47 /apps/files/src/components/FilesListHeaderActions.vue
parenta05176a1f592d06b24725cd158baaf85e4456c6d (diff)
downloadnextcloud-server-b7df4196e2883da9028f8c5d646fbbf5ae10cf49.tar.gz
nextcloud-server-b7df4196e2883da9028f8c5d646fbbf5ae10cf49.zip
feat(files): right click
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.vue15
1 files changed, 14 insertions, 1 deletions
diff --git a/apps/files/src/components/FilesListHeaderActions.vue b/apps/files/src/components/FilesListHeaderActions.vue
index d60fd81ad00..f136e281f09 100644
--- a/apps/files/src/components/FilesListHeaderActions.vue
+++ b/apps/files/src/components/FilesListHeaderActions.vue
@@ -24,7 +24,8 @@
<NcActions ref="actionsMenu"
:disabled="!!loading || areSomeNodesLoading"
:force-title="true"
- :inline="3">
+ :inline="3"
+ :open.sync="openedMenu">
<NcActionButton v-for="action in enabledActions"
:key="action.id"
:class="'files-list__row-actions-batch-' + action.id"
@@ -48,6 +49,7 @@ import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
import Vue from 'vue'
import { getFileActions } from '../services/FileAction.ts'
+import { useActionsMenuStore } from '../store/actionsmenu.ts'
import { useFilesStore } from '../store/files.ts'
import { useSelectionStore } from '../store/selection.ts'
import CustomSvgIconRender from './CustomSvgIconRender.vue'
@@ -78,9 +80,11 @@ export default Vue.extend({
},
setup() {
+ const actionsMenuStore = useActionsMenuStore()
const filesStore = useFilesStore()
const selectionStore = useSelectionStore()
return {
+ actionsMenuStore,
filesStore,
selectionStore,
}
@@ -109,6 +113,15 @@ export default Vue.extend({
areSomeNodesLoading() {
return this.nodes.some(node => node._loading)
},
+
+ openedMenu: {
+ get() {
+ return this.actionsMenuStore.opened === 'global'
+ },
+ set(opened) {
+ this.actionsMenuStore.opened = opened ? 'global' : null
+ },
+ },
},
methods: {