add stat picker to single stat

This commit is contained in:
ryan
2019-03-22 00:14:50 -07:00
parent f8094a6e09
commit 658f419cab
12 changed files with 83 additions and 53 deletions

View File

@@ -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 });