9393</template >
9494
9595<script lang="ts">
96- import { DefaultType , FileAction , Node , NodeStatus , View , getFileActions } from ' @nextcloud/files'
96+ import type { FileAction , Node , View } from ' @nextcloud/files'
97+ import type { PropType } from ' vue'
98+
9799import { showError , showSuccess } from ' @nextcloud/dialogs'
100+ import { DefaultType , NodeStatus , getFileActions } from ' @nextcloud/files'
98101import { translate as t } from ' @nextcloud/l10n'
99- import Vue , { PropType } from ' vue'
102+ import Vue , { defineComponent } from ' vue'
100103
101104import ArrowLeftIcon from ' vue-material-design-icons/ArrowLeft.vue'
102- import ChevronRightIcon from ' vue-material-design-icons/ChevronRight.vue'
103105import NcActionButton from ' @nextcloud/vue/dist/Components/NcActionButton.js'
104106import NcActions from ' @nextcloud/vue/dist/Components/NcActions.js'
105107import NcActionSeparator from ' @nextcloud/vue/dist/Components/NcActionSeparator.js'
@@ -112,12 +114,11 @@ import logger from '../../logger.js'
112114// The registered actions list
113115const actions = getFileActions ()
114116
115- export default Vue . extend ({
117+ export default defineComponent ({
116118 name: ' FileEntryActions' ,
117119
118120 components: {
119121 ArrowLeftIcon ,
120- ChevronRightIcon ,
121122 CustomElementRender ,
122123 NcActionButton ,
123124 NcActions ,
@@ -335,7 +336,7 @@ export default Vue.extend({
335336 // Focus the previous menu action button
336337 this .$nextTick (() => {
337338 // Focus the action button
338- const menuAction = this .$refs [` action-${action .id } ` ][0 ]
339+ const menuAction = this .$refs [` action-${action .id } ` ]?. [0 ]
339340 if (menuAction ) {
340341 menuAction .$el .querySelector (' button' )?.focus ()
341342 }
0 commit comments