mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: emit event whenever the theme changes (#99672)
emit event whenever the theme changes
This commit is contained in:
parent
1fb1f8846f
commit
6e8e320ace
@ -120,6 +120,10 @@ export class SharedPreferences extends PureComponent<Props, State> {
|
||||
|
||||
onThemeChanged = (value: ComboboxOption<string>) => {
|
||||
this.setState({ theme: value.value });
|
||||
reportInteraction('grafana_preferences_theme_changed', {
|
||||
toTheme: value.value,
|
||||
preferenceType: this.props.preferenceType,
|
||||
});
|
||||
|
||||
if (value.value) {
|
||||
changeTheme(value.value, true);
|
||||
|
Loading…
Reference in New Issue
Block a user