Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/app-elements/src/providers/TokenProvider/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,15 @@ export interface TokenProviderExtras {
organization?: {
isEnterprise?: boolean
}
/**
* This method can be used to trigger the display of a resource detail modal within the dashboard, when the app is running as micro-frontend inside the dashboard.
* It accepts an object with `resourceType` and `resourceId` properties, that will be used to generate the URL of the resource detail page and trigger the redirection.
*/
openResourceModal?: ({
resourceType,
resourceId,
}: {
resourceType: string
resourceId: string
}) => void
}
Loading