mirror of
https://github.com/grafana/grafana.git
synced 2025-02-03 12:11:09 -06:00
00a9af00fc
* Chore: initial commit * Tests: fixes MetricsQueryEditor.test.tsx * Tests: fixes cloudwatch/specs/datasource.test.ts * Tests: fixes stackdriver/specs/datasource.test.ts * Tests: remove refrences to CustomVariable * Refactor: moves DefaultVariableQueryEditor * Refactor: moves utils * Refactor: moves types * Refactor: removes variableSrv * Refactor: removes feature toggle newVariables * Refactor: removes valueSelectDropDown * Chore: removes GeneralTabCtrl * Chore: migrates RowOptions * Refactor: adds RowOptionsButton * Refactor: makes the interface more explicit * Refactor: small changes * Refactor: changed type as it can be any variable type * Tests: fixes broken test * Refactor: changes after PR comments * Refactor: adds loading state and call to onChange in componentDidMount
25 lines
832 B
TypeScript
25 lines
832 B
TypeScript
import { combineReducers } from '@reduxjs/toolkit';
|
|
import { optionsPickerReducer, OptionsPickerState } from '../pickers/OptionsPicker/reducer';
|
|
import { variableEditorReducer, VariableEditorState } from '../editor/reducer';
|
|
import { variablesReducer } from './variablesReducer';
|
|
import { VariableModel } from '../types';
|
|
import { transactionReducer, TransactionState } from './transactionReducer';
|
|
|
|
export interface TemplatingState {
|
|
variables: Record<string, VariableModel>;
|
|
optionsPicker: OptionsPickerState;
|
|
editor: VariableEditorState;
|
|
transaction: TransactionState;
|
|
}
|
|
|
|
export const templatingReducers = combineReducers({
|
|
editor: variableEditorReducer,
|
|
variables: variablesReducer,
|
|
optionsPicker: optionsPickerReducer,
|
|
transaction: transactionReducer,
|
|
});
|
|
|
|
export default {
|
|
templating: templatingReducers,
|
|
};
|