I’m implementing an app on v30 and am trying to add some app specific file actions to the ellipsis file action menu. I can add the actions, but am puzzled why the registerFileAction enabled function takes a files argument containing all files/nodes in the view rather than a single file argument containing the specific file/node similar to the exec function.
I don’t want to add an action to all files/nodes in the view, only specific ones matching particular features.
Is this a bug? Should registerFileAction enabled take a single file parameter rather than all files?
Or is there some trick I’m missing to limit the file action only to specific files in the view?