diff options
author | Grigorii K. Shartsev <me@shgk.me> | 2024-02-06 23:30:08 +0100 |
---|---|---|
committer | Grigorii K. Shartsev <me@shgk.me> | 2024-02-07 23:56:08 +0100 |
commit | eb01e74eaa83c3b1010ed514bea6290dda836a71 (patch) | |
tree | 183e17ec60ac7116975d0d4d68b35713ac7bdffa /apps/files | |
parent | 0395cd8716312441be9f1011a5aa12adac9555e4 (diff) | |
download | nextcloud-server-eb01e74eaa83c3b1010ed514bea6290dda836a71.tar.gz nextcloud-server-eb01e74eaa83c3b1010ed514bea6290dda836a71.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/files')
-rw-r--r-- | apps/files/src/components/FileEntry/FileEntryActions.vue | 6 |
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 |