|
|
|
@ -19,6 +19,7 @@ export interface Props { |
|
|
|
|
scopedVars?: string; |
|
|
|
|
links?: []; |
|
|
|
|
error?: string; |
|
|
|
|
isFullscreen: boolean; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
interface ClickCoordinates { |
|
|
|
@ -69,10 +70,9 @@ export class PanelHeader extends Component<Props, State> { |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
render() { |
|
|
|
|
const isFullscreen = false; |
|
|
|
|
const isLoading = false; |
|
|
|
|
const { panel, dashboard, timeInfo, scopedVars, error, isFullscreen } = this.props; |
|
|
|
|
|
|
|
|
|
const panelHeaderClass = classNames({ 'panel-header': true, 'grid-drag-handle': !isFullscreen }); |
|
|
|
|
const { panel, dashboard, timeInfo, scopedVars, error } = this.props; |
|
|
|
|
const title = templateSrv.replaceWithText(panel.title, scopedVars); |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
@ -86,11 +86,6 @@ export class PanelHeader extends Component<Props, State> { |
|
|
|
|
error={error} |
|
|
|
|
/> |
|
|
|
|
<div className={panelHeaderClass}> |
|
|
|
|
{isLoading && ( |
|
|
|
|
<span className="panel-loading"> |
|
|
|
|
<i className="fa fa-spinner fa-spin" /> |
|
|
|
|
</span> |
|
|
|
|
)} |
|
|
|
|
<div className="panel-title-container" onClick={this.onMenuToggle} onMouseDown={this.onMouseDown}> |
|
|
|
|
<div className="panel-title"> |
|
|
|
|
<span className="icon-gf panel-alert-icon" /> |
|
|
|
|