aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FileEntry
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-02-08 08:57:40 +0100
committerLouis Chemineau <louis@chmn.me>2024-02-08 18:27:34 +0100
commita4f338c7a05244dd6b95e91b26e84a7e27f2bec3 (patch)
tree7e11d113ee11f1d080b37d664ec6441f8d335787 /apps/files/src/components/FileEntry
parenta7265dd46c798a7ca29caec990dbee4df0f91b01 (diff)
downloadnextcloud-server-a4f338c7a05244dd6b95e91b26e84a7e27f2bec3.tar.gz
nextcloud-server-a4f338c7a05244dd6b95e91b26e84a7e27f2bec3.zip
Merge pull request #42444 from nextcloud/fix/41877/files--move-focus-to-sidebar-on-open
Diffstat (limited to 'apps/files/src/components/FileEntry')
-rw-r--r--apps/files/src/components/FileEntry/FileEntryActions.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/src/components/FileEntry/FileEntryActions.vue b/apps/files/src/components/FileEntry/FileEntryActions.vue
index c46990e971b..5dae3509f3b 100644
--- a/apps/files/src/components/FileEntry/FileEntryActions.vue
+++ b/apps/files/src/components/FileEntry/FileEntryActions.vue
@@ -35,7 +35,6 @@
<NcActions ref="actionsMenu"
:boundaries-element="getBoundariesElement"
:container="getBoundariesElement"
- :disabled="isLoading || loading !== ''"
:force-name="true"
type="tertiary"
:force-menu="enabledInlineActions.length === 0 /* forceMenu only if no inline actions */"
@@ -272,6 +271,11 @@ export default Vue.extend({
},
async onActionClick(action, isSubmenu = false) {
+ // Skip click on loading
+ if (this.isLoading || this.loading !== '') {
+ return
+ }
+
// If the action is a submenu, we open it
if (this.enabledSubmenuActions[action.id]) {
this.openedSubmenu = action