mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Teams page replace mobx (#13219)
* 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
This commit is contained in:
committed by
Torkel Ödegaard
parent
1ce9001141
commit
9f73f13091
@@ -1,3 +1,4 @@
|
||||
import { updateLocation } from './location';
|
||||
import { updateNavIndex, UpdateNavIndexAction } from './navModel';
|
||||
|
||||
export { updateLocation };
|
||||
export { updateLocation, updateNavIndex, UpdateNavIndexAction };
|
||||
|
||||
@@ -1,13 +1,17 @@
|
||||
export type Action = UpdateNavIndexAction;
|
||||
import { NavModelItem } from '../../types';
|
||||
|
||||
// this action is not used yet
|
||||
// kind of just a placeholder, will be need for dynamic pages
|
||||
// like datasource edit, teams edit page
|
||||
|
||||
export interface UpdateNavIndexAction {
|
||||
type: 'UPDATE_NAV_INDEX';
|
||||
export enum ActionTypes {
|
||||
UpdateNavIndex = 'UPDATE_NAV_INDEX',
|
||||
}
|
||||
|
||||
export const updateNavIndex = (): UpdateNavIndexAction => ({
|
||||
type: '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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user