]> source.dussan.org Git - nextcloud-server.git/commit
refactor(files): Fix TypeScript issues in FileEntryActions
authorFerdinand Thiessen <opensource@fthiessen.de>
Fri, 31 May 2024 12:19:12 +0000 (14:19 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Sat, 8 Jun 2024 15:09:18 +0000 (15:09 +0000)
commit5b1969b0f5ef9edc9a78cea51326863497343fa9
treed8835fec5d6cfa01a6fc0ec7626507163c36bfc2
parent2770a56bb9f18aabc16dd790c350582639c507bf
refactor(files): Fix TypeScript issues in FileEntryActions

* We filter the array in `enabledSubmenuActions` so we can be sure the action does have a parent
* Node attributes must be accessed using the `attributes` getter not the private `_attributes` property
* Cast action ref to correct component interface to make TypeScript happy

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/files/src/components/FileEntry/FileEntryActions.vue
apps/files/src/components/FileEntryMixin.ts