TDR Messung von JSON datei in Chart Diagramm bereich zeichnen
This commit is contained in:
@@ -5,6 +5,7 @@ import { DataTDR } from "../types/chartDataTypesTDR";
|
||||
// Typ für den State
|
||||
export interface VariablesState {
|
||||
selectedChartData: DataTDR[] | null;
|
||||
selectedFileName: string | null;
|
||||
//------------
|
||||
kueBezeichnungen: string[];
|
||||
isolationsgrenzwerte: number[];
|
||||
@@ -64,6 +65,7 @@ export interface VariablesState {
|
||||
|
||||
// Initialer Zustand
|
||||
const initialState: VariablesState = {
|
||||
selectedFileName: null,
|
||||
//------------
|
||||
selectedChartData: null,
|
||||
kueBezeichnungen: [],
|
||||
@@ -147,9 +149,16 @@ const variablesSlice = createSlice({
|
||||
setSelectedChartData(state, action: PayloadAction<DataTDR[] | null>) {
|
||||
state.selectedChartData = action.payload;
|
||||
},
|
||||
setSelectedFileName(state, action: PayloadAction<string | null>) {
|
||||
state.selectedFileName = action.payload;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const { setVariable, setVariables, setSelectedChartData } =
|
||||
variablesSlice.actions;
|
||||
export const {
|
||||
setVariable,
|
||||
setVariables,
|
||||
setSelectedChartData,
|
||||
setSelectedFileName,
|
||||
} = variablesSlice.actions;
|
||||
export default variablesSlice.reducer;
|
||||
|
||||
Reference in New Issue
Block a user