fix(files): use correct API for action displayName in batch actions

The displayName call was still using the old positional arguments
(nodes, view) instead of the new object parameter format (actionContext)
after the @nextcloud/files 4.0.0 update.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
pull/57860/head
nfebe 4 months ago
parent dde7b7cf87
commit 730b30381f
  1. 2
      apps/files/src/components/FilesListTableHeaderActions.vue

@ -287,7 +287,7 @@ export default defineComponent({
let displayName = action.id
try {
displayName = action.displayName(this.nodes, this.currentView)
displayName = action.displayName(this.actionContext)
} catch (error) {
logger.error('Error while getting action display name', { action, error })
}

Loading…
Cancel
Save