mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(files): do not disable action on load to keep focus
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
This commit is contained in:
parent
0395cd8716
commit
eb01e74eaa
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue