mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Events: Migrate old timeRangeUpdate event to new event system to get rid of console.log warning (#35767)
* Events: Migrate old timeRangeUpdate event to new event system to get rid of console.log warning * Review feedback
This commit is contained in:
@@ -90,30 +90,18 @@ export interface PanelChangeViewPayload {}
|
||||
* Events
|
||||
*/
|
||||
|
||||
export const dashLinksUpdated = eventFactory('dash-links-updated');
|
||||
export const searchQuery = eventFactory('search-query');
|
||||
|
||||
export const dsRequestResponse = eventFactory<DataSourceResponsePayload>('ds-request-response');
|
||||
export const dsRequestError = eventFactory<any>('ds-request-error');
|
||||
|
||||
export const toggleSidemenuMobile = eventFactory('toggle-sidemenu-mobile');
|
||||
export const toggleSidemenuHidden = eventFactory('toggle-sidemenu-hidden');
|
||||
|
||||
export const toggleKioskMode = eventFactory<ToggleKioskModePayload>('toggle-kiosk-mode');
|
||||
|
||||
export const timeRangeUpdated = eventFactory<TimeRange>('time-range-updated');
|
||||
export const templateVariableValueUpdated = eventFactory('template-variable-value-updated');
|
||||
|
||||
export const graphClicked = eventFactory<GraphClickedPayload>('graph-click');
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const thresholdChanged = eventFactory<ThresholdChangedPayload>('threshold-changed');
|
||||
|
||||
export const zoomOut = eventFactory<number>('zoom-out');
|
||||
|
||||
export const shiftTime = eventFactory<number>('shift-time');
|
||||
|
||||
export const routeUpdated = eventFactory('$routeUpdate');
|
||||
|
||||
/**
|
||||
* Used for syncing queries badge count in panel edit queries tab
|
||||
* Think we can get rid of this soon
|
||||
@@ -209,3 +197,7 @@ export class AnnotationQueryStarted extends BusEventWithPayload<AnnotationQuery>
|
||||
export class AnnotationQueryFinished extends BusEventWithPayload<AnnotationQuery> {
|
||||
static type = 'annotation-query-finished';
|
||||
}
|
||||
|
||||
export class TimeRangeUpdatedEvent extends BusEventWithPayload<TimeRange> {
|
||||
static type = 'time-range-updated';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user