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/57880/head
nfebe 3 months ago committed by backportbot[bot]
parent 8963ec0a32
commit bfeddc2d7d
  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