Skip to content

Commit 98ec392

Browse files
committed
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>
1 parent 7da87dc commit 98ec392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files/src/components/FilesListTableHeaderActions.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export default defineComponent({
287287
288288
let displayName = action.id
289289
try {
290-
displayName = action.displayName(this.nodes, this.currentView)
290+
displayName = action.displayName(this.actionContext)
291291
} catch (error) {
292292
logger.error('Error while getting action display name', { action, error })
293293
}

0 commit comments

Comments
 (0)