aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FileEntry.vue
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2023-04-11 12:28:36 +0200
committerGitHub <noreply@github.com>2023-04-11 12:28:36 +0200
commitc6645cbc46291d2621992b7f0bb087f115e849eb (patch)
tree4239c728272dbd2dd0fcdbf6fab84ca810e62c40 /apps/files/src/components/FileEntry.vue
parenta16703d18183aa34a7e6ffcb9c9cb3756cfb0c2e (diff)
parent0b0dbb99d30fc8bfb0cb34e194f8b7412fbab5ca (diff)
downloadnextcloud-server-c6645cbc46291d2621992b7f0bb087f115e849eb.tar.gz
nextcloud-server-c6645cbc46291d2621992b7f0bb087f115e849eb.zip
Merge pull request #37633 from nextcloud/fix/trashbin
Trashbin followup fixes
Diffstat (limited to 'apps/files/src/components/FileEntry.vue')
-rw-r--r--apps/files/src/components/FileEntry.vue6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue
index 130cd12367e..fca83cabbd1 100644
--- a/apps/files/src/components/FileEntry.vue
+++ b/apps/files/src/components/FileEntry.vue
@@ -63,6 +63,7 @@
<!-- Menu actions -->
<NcActions v-if="active"
ref="actionsMenu"
+ :disabled="source._loading"
:force-title="true"
:inline="enabledInlineActions.length">
<NcActionButton v-for="action in enabledMenuActions"
@@ -433,7 +434,10 @@ export default Vue.extend({
async onActionClick(action) {
const displayName = action.displayName([this.source], this.currentView)
try {
+ // Set the loading marker
this.loading = action.id
+ Vue.set(this.source, '_loading', true)
+
const success = await action.exec(this.source, this.currentView)
if (success) {
showSuccess(this.t('files', '"{displayName}" action executed successfully', { displayName }))
@@ -444,7 +448,9 @@ export default Vue.extend({
logger.error('Error while executing action', { action, e })
showError(this.t('files', '"{displayName}" action failed', { displayName }))
} finally {
+ // Reset the loading marker
this.loading = ''
+ Vue.set(this.source, '_loading', false)
}
},