Skip to content

Commit

Permalink
Merge pull request #49425 from nextcloud/backport/49271/stable29
Browse files Browse the repository at this point in the history
[stable29] fix(files): Make injected actions reactive
  • Loading branch information
skjnldsv authored Jan 8, 2025
2 parents 5e80c08 + d6f6869 commit 129cfb0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions apps/files/src/components/FileEntryMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { generateUrl } from '@nextcloud/router'
import { showError } from '@nextcloud/dialogs'
import { translate as t } from '@nextcloud/l10n'
import { vOnClickOutside } from '@vueuse/components'
import Vue, { defineComponent } from 'vue'
import Vue, { computed, defineComponent } from 'vue'

import { action as sidebarAction } from '../actions/sidebarAction.ts'
import { dataTransferToFileTree, onDropExternalFiles, onDropInternalFiles } from '../services/DropService.ts'
Expand Down Expand Up @@ -58,8 +58,8 @@ export default defineComponent({

provide() {
return {
defaultFileAction: this.defaultFileAction,
enabledFileActions: this.enabledFileActions,
defaultFileAction: computed(() => this.defaultFileAction),
enabledFileActions: computed(() => this.enabledFileActions),
}
},

Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

0 comments on commit 129cfb0

Please sign in to comment.