NewPanelEdit: Adding repeating options (#22984)

* NewPanelEdit: Adding repeating options

* Added all repeat options

* reduce strict null errors
This commit is contained in:
Torkel Ödegaard
2020-03-24 15:44:13 +01:00
committed by GitHub
parent 57c55f7e16
commit 441e87d4d4
9 changed files with 127 additions and 68 deletions

View File

@@ -29,7 +29,7 @@ export interface OwnProps {
}
export interface ConnectedProps {
plugin?: PanelPlugin;
plugin?: PanelPlugin | null;
}
export interface DispatchProps {

View File

@@ -31,7 +31,7 @@ interface OwnProps {
}
interface ConnectedProps {
angularComponent: AngularComponent;
angularComponent?: AngularComponent | null;
}
interface DispatchProps {

View File

@@ -22,7 +22,7 @@ export interface Props {
title?: string;
description?: string;
scopedVars?: ScopedVars;
angularComponent?: AngularComponent;
angularComponent?: AngularComponent | null;
links?: DataLink[];
error?: string;
isFullscreen: boolean;
@@ -108,7 +108,7 @@ export class PanelHeader extends Component<Props, State> {
return (
<Tooltip content={notice.text} key={notice.severity}>
{notice.inspect ? (
<div className="panel-info-notice" onClick={e => this.openInspect(e, notice.inspect)}>
<div className="panel-info-notice" onClick={e => this.openInspect(e, notice.inspect!)}>
<span className="fa fa-info-circle" style={{ marginRight: '8px', cursor: 'pointer' }} />
</div>
) : (