mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixed issue with PanelHeader and grid-drag-handle class still being applied in fullscreen, fixes #15480
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user