summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorGrigorii K. Shartsev <me@shgk.me>2024-02-06 23:30:08 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-02-08 10:45:42 +0000
commit78a7f7435783763c7f5ee8f549b2ec322cecd9a8 (patch)
tree189e761fcdd10eb840eaf074b59461e1b0b8cef8 /apps
parent62a8f2db5cd9758dd83071e1457ba0465511a89e (diff)
downloadnextcloud-server-78a7f7435783763c7f5ee8f549b2ec322cecd9a8.tar.gz
nextcloud-server-78a7f7435783763c7f5ee8f549b2ec322cecd9a8.zip
fix(files): do not disable action on load to keep focus
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Diffstat (limited to 'apps')
-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 02b1d9e6183..86689cfe62b 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