PanelEdit: Fixed timing and state related issues (#22131)
* PanelEdit: Fixed timing and state related issues * Added unit test and changed some logic * Fixed id logic * Updated snapshots * Update public/app/features/dashboard/state/PanelModel.ts Co-Authored-By: Dominik Prokop <dominik.prokop@grafana.com> Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
This commit is contained in:
co-authored by
Dominik Prokop
parent
9c55500cc0
commit
70b0ec65b3
@@ -54,6 +54,7 @@ export class GrafanaBootConfig {
|
||||
loginHint: any;
|
||||
passwordHint: any;
|
||||
loginError: any;
|
||||
navTree: any;
|
||||
viewersCanEdit = false;
|
||||
editorsCanAdmin = false;
|
||||
disableSanitizeHtml = false;
|
||||
@@ -98,6 +99,7 @@ export class GrafanaBootConfig {
|
||||
const bootData = (window as any).grafanaBootData || {
|
||||
settings: {},
|
||||
user: {},
|
||||
navTree: [],
|
||||
};
|
||||
|
||||
const options = bootData.settings;
|
||||
|
||||
@@ -209,7 +209,6 @@ export class Cascader extends React.PureComponent<CascaderProps, CascaderState>
|
||||
value={activeLabel}
|
||||
onKeyDown={this.onInputKeyDown}
|
||||
onChange={() => {}}
|
||||
size={size || 'md'}
|
||||
suffix={focusCascade ? <Icon name="caret-up" /> : <Icon name="caret-down" />}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user