aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FileEntry/FileEntryActions.vue
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-04-15 18:09:37 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-04-16 11:24:57 +0200
commitbbe3f4a88049707249fc215d593788e83377637b (patch)
treec811cc3fa836e4c29d7c26be83a48dc433884c23 /apps/files/src/components/FileEntry/FileEntryActions.vue
parentc821f28014b6abe9847bbc3a02d471469430266f (diff)
downloadnextcloud-server-bbe3f4a88049707249fc215d593788e83377637b.tar.gz
nextcloud-server-bbe3f4a88049707249fc215d593788e83377637b.zip
fix(files): Inherit some node attributes when creating new nodes to preserve shared state
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files/src/components/FileEntry/FileEntryActions.vue')
-rw-r--r--apps/files/src/components/FileEntry/FileEntryActions.vue8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/files/src/components/FileEntry/FileEntryActions.vue b/apps/files/src/components/FileEntry/FileEntryActions.vue
index ff28369049b..6e5d78518f7 100644
--- a/apps/files/src/components/FileEntry/FileEntryActions.vue
+++ b/apps/files/src/components/FileEntry/FileEntryActions.vue
@@ -105,8 +105,7 @@ import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator.
import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js'
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
import ArrowLeftIcon from 'vue-material-design-icons/ArrowLeft.vue'
-import ChevronRightIcon from 'vue-material-design-icons/ChevronRight.vue'
-import Vue from 'vue'
+import Vue, { defineComponent } from 'vue'
import CustomElementRender from '../CustomElementRender.vue'
import logger from '../../logger.js'
@@ -114,12 +113,11 @@ import logger from '../../logger.js'
// The registered actions list
const actions = getFileActions()
-export default Vue.extend({
+export default defineComponent({
name: 'FileEntryActions',
components: {
ArrowLeftIcon,
- ChevronRightIcon,
CustomElementRender,
NcActionButton,
NcActions,
@@ -337,7 +335,7 @@ export default Vue.extend({
// Focus the previous menu action button
this.$nextTick(() => {
// Focus the action button
- const menuAction = this.$refs[`action-${action.id}`][0]
+ const menuAction = this.$refs[`action-${action.id}`]?.[0]
if (menuAction) {
menuAction.$el.querySelector('button')?.focus()
}