mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PanelEdit: Fixes showIf for panel level options, fixes configRev when switching panels (#33173)
This commit is contained in:
parent
af46bbf654
commit
2bb7eb18d1
@ -41,6 +41,10 @@ export function getVizualizationOptions(props: OptionPaneRenderProps): OptionsPa
|
||||
* Panel options
|
||||
*/
|
||||
for (const pluginOption of plugin.optionEditors.list()) {
|
||||
if (pluginOption.showIf && !pluginOption.showIf(currentOptions, data?.series)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const category = getOptionsPaneCategory(pluginOption.category);
|
||||
const Editor = pluginOption.editor;
|
||||
|
||||
|
@ -105,6 +105,7 @@ const mustKeepProps: { [str: string]: boolean } = {
|
||||
replaceVariables: true,
|
||||
libraryPanel: true,
|
||||
getDisplayTitle: true,
|
||||
configRev: true,
|
||||
};
|
||||
|
||||
const defaults: any = {
|
||||
|
Loading…
Reference in New Issue
Block a user