Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(files): Make injected actions reactive #49271

Merged
merged 2 commits into from
Nov 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/files/src/components/FileEntryMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
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'
Expand Down Expand Up @@ -52,8 +52,8 @@

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

Expand Down Expand Up @@ -213,8 +213,8 @@
/**
* When the source changes, reset the preview
* and fetch the new one.
* @param a

Check warning on line 216 in apps/files/src/components/FileEntryMixin.ts

View workflow job for this annotation

GitHub Actions / NPM lint

Missing JSDoc @param "a" description
* @param b

Check warning on line 217 in apps/files/src/components/FileEntryMixin.ts

View workflow job for this annotation

GitHub Actions / NPM lint

Missing JSDoc @param "b" description
*/
source(a: Node, b: Node) {
if (a.source !== b.source) {
Expand Down
Loading