mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* creating types, actions, reducer * load teams and store in redux * delete team * set search query action and tests * Teampages page * team members, bug in fetching team * flattened team state, tests for TeamMembers * test for team member selector * team settings * actions for group sync * tests for team groups * removed comment * remove old stores * fix: formating of datasource.go * fix: minor changes to imports * adding debounce and fixing issue in teamlist * refactoring: moving types to their own files
18 lines
397 B
TypeScript
18 lines
397 B
TypeScript
import { NavModelItem } from '../../types';
|
|
|
|
export enum ActionTypes {
|
|
UpdateNavIndex = 'UPDATE_NAV_INDEX',
|
|
}
|
|
|
|
export type Action = UpdateNavIndexAction;
|
|
|
|
export interface UpdateNavIndexAction {
|
|
type: ActionTypes.UpdateNavIndex;
|
|
payload: NavModelItem;
|
|
}
|
|
|
|
export const updateNavIndex = (item: NavModelItem): UpdateNavIndexAction => ({
|
|
type: ActionTypes.UpdateNavIndex,
|
|
payload: item,
|
|
});
|