Hi all,
Bumping my head against the wall for a while now.
Building an entity action that needs to retrieve the language of the content pane (which can be in split view)
It works fine (I can consume the context to get the split view and the variants) when the entity action is fired from the “Action” menu, but not when initiated from the content tree item context menu)
From the ctor:
this.consumeContext(UMB_DOCUMENT_WORKSPACE_CONTEXT, (documentWorkspaceContext) => {
this.observe(documentWorkspaceContext.splitView.activeVariantsInfo, (variants) => {
this.#variants = variants;
});
})
and I can get the language/culture I need (the first variant) from the async execute() when running from the Action menu
However, this.#variants is undefined when run from the content item context menu.
Anyone has any idea if it’s possible at all to get the language(s) of the content pane from the content item context menu?
Cheers,
Dirk