mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
add stat picker to single stat
This commit is contained in:
@@ -98,6 +98,12 @@ export class DashboardPanel extends PureComponent<Props, State> {
|
||||
}
|
||||
panel.changeType(pluginId, hook);
|
||||
}
|
||||
} else if (plugin.exports && plugin.exports.reactPanel) {
|
||||
const hook = plugin.exports.reactPanel.panelTypeChangedHook;
|
||||
if (hook) {
|
||||
panel.options = hook(panel.options || {}, null, null);
|
||||
console.log('OPITONS', pluginId, panel);
|
||||
}
|
||||
}
|
||||
|
||||
this.setState({ plugin, angularPanel: null });
|
||||
|
||||
Reference in New Issue
Block a user