mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Migration: Migrate org switcher to react (#19607)
* Migration: Migrate org switcher to react * Improve modal overflow behavior * Updated modal backdrop * Renamed type * Modal: Refactoring and reducing duplication
This commit is contained in:
committed by
Torkel Ödegaard
parent
5cd4ffffe3
commit
a093fbb51a
@@ -39,16 +39,7 @@ export class PanelInspector extends PureComponent<Props, State> {
|
||||
// TODO? should we get the result with an observable once?
|
||||
const data = (panel.getQueryRunner() as any).lastResult;
|
||||
return (
|
||||
<Modal
|
||||
title={
|
||||
<div className="modal-header-title">
|
||||
<i className="fa fa-info-circle" />
|
||||
<span className="p-l-1">{panel.title ? panel.title : 'Panel'}</span>
|
||||
</div>
|
||||
}
|
||||
onDismiss={this.onDismiss}
|
||||
isOpen={true}
|
||||
>
|
||||
<Modal title={panel.title} icon="fa fa-info-circle" onDismiss={this.onDismiss} isOpen={true}>
|
||||
<div className={bodyStyle}>
|
||||
<JSONFormatter json={data} open={2} />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user