mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
[drilldown] fix Darktheme is missing from add drilldowns panel (#147270)
Fixes https://github.com/elastic/kibana/issues/147147 Replaces https://github.com/elastic/kibana/pull/147151. Thanks for the tip @Dosant PR passes theme$ to toMountPoint <img width="400" alt="Screen Shot 2022-12-06 at 4 54 49 PM" src="https://user-images.githubusercontent.com/373691/206051509-207c39f6-125d-46f9-baab-87a5a96a6541.png"> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
95a3313b9f
commit
26b22746b7
4 changed files with 10 additions and 2 deletions
|
@ -26,6 +26,9 @@ const actionParams: OpenFlyoutAddDrilldownParams = {
|
||||||
application: {
|
application: {
|
||||||
currentAppId$: new Subject(),
|
currentAppId$: new Subject(),
|
||||||
},
|
},
|
||||||
|
theme: {
|
||||||
|
theme$: new Subject(),
|
||||||
|
},
|
||||||
} as any,
|
} as any,
|
||||||
plugins: {
|
plugins: {
|
||||||
uiActionsEnhanced,
|
uiActionsEnhanced,
|
||||||
|
|
|
@ -106,7 +106,8 @@ export class FlyoutCreateDrilldownAction implements Action<EmbeddableContext> {
|
||||||
placeContext={{ embeddable }}
|
placeContext={{ embeddable }}
|
||||||
templates={templates}
|
templates={templates}
|
||||||
onClose={close}
|
onClose={close}
|
||||||
/>
|
/>,
|
||||||
|
{ theme$: core.theme.theme$ }
|
||||||
),
|
),
|
||||||
{
|
{
|
||||||
ownFocus: true,
|
ownFocus: true,
|
||||||
|
|
|
@ -36,6 +36,9 @@ const actionParams: FlyoutEditDrilldownParams = {
|
||||||
application: {
|
application: {
|
||||||
currentAppId$: new Subject(),
|
currentAppId$: new Subject(),
|
||||||
},
|
},
|
||||||
|
theme: {
|
||||||
|
theme$: new Subject(),
|
||||||
|
},
|
||||||
} as any,
|
} as any,
|
||||||
plugins: {
|
plugins: {
|
||||||
uiActionsEnhanced: uiActions,
|
uiActionsEnhanced: uiActions,
|
||||||
|
|
|
@ -80,7 +80,8 @@ export class FlyoutEditDrilldownAction implements Action<EmbeddableContext> {
|
||||||
placeContext={{ embeddable }}
|
placeContext={{ embeddable }}
|
||||||
templates={templates}
|
templates={templates}
|
||||||
onClose={close}
|
onClose={close}
|
||||||
/>
|
/>,
|
||||||
|
{ theme$: core.theme.theme$ }
|
||||||
),
|
),
|
||||||
{
|
{
|
||||||
ownFocus: true,
|
ownFocus: true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue