mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(files): Make injected actions reactive
Provided values are not reactive by default and by design, we must need computed to make them reactive. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
8fd7210aaa
commit
b1df25af63
1 changed files with 3 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ import { generateUrl } from '@nextcloud/router'
|
|||
import { isPublicShare } from '@nextcloud/sharing/public'
|
||||
import { vOnClickOutside } from '@vueuse/components'
|
||||
import { extname } from 'path'
|
||||
import Vue, { defineComponent } from 'vue'
|
||||
import Vue, { computed, defineComponent } from 'vue'
|
||||
|
||||
import { action as sidebarAction } from '../actions/sidebarAction.ts'
|
||||
import { getDragAndDropPreview } from '../utils/dragUtils.ts'
|
||||
|
|
@ -52,8 +52,8 @@ export default defineComponent({
|
|||
|
||||
provide() {
|
||||
return {
|
||||
defaultFileAction: this.defaultFileAction,
|
||||
enabledFileActions: this.enabledFileActions,
|
||||
defaultFileAction: computed(() => this.defaultFileAction),
|
||||
enabledFileActions: computed(() => this.enabledFileActions),
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue