From d7178ede70ac0126a7dceff8519d29217ef03a07 Mon Sep 17 00:00:00 2001 From: fsdavid <daviti1@mail.com> Date: Thu, 10 Dec 2020 13:11:44 +0100 Subject: [PATCH] Fix typo --- src/atlasViewer/atlasViewer.component.ts | 2 +- src/services/state/viewerState.store.ts | 4 ++-- .../connectivityBrowser.component.ts | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/atlasViewer/atlasViewer.component.ts b/src/atlasViewer/atlasViewer.component.ts index 38273ee96..8f1410127 100644 --- a/src/atlasViewer/atlasViewer.component.ts +++ b/src/atlasViewer/atlasViewer.component.ts @@ -44,7 +44,7 @@ import { ngViewerSelectorClearViewEntries } from "src/services/state/ngViewerSta import { ngViewerActionClearView } from "src/services/state/ngViewerState/actions"; import { uiStateMouseOverSegmentsSelector } from "src/services/state/uiState/selectors"; import { ClickInterceptorService } from "src/glue"; -import {SET_OVERRITEN_COLOR_MAP} from "src/services/state/viewerState.store"; +import {SET_OVERWRITTEN_COLOR_MAP} from "src/services/state/viewerState.store"; /** * TODO diff --git a/src/services/state/viewerState.store.ts b/src/services/state/viewerState.store.ts index f3126ac27..25adedb5c 100644 --- a/src/services/state/viewerState.store.ts +++ b/src/services/state/viewerState.store.ts @@ -219,7 +219,7 @@ export const getStateStore = ({ state = defaultState } = {}) => (prevState: Part ...prevState, connectivityRegion: '', } - case SET_OVERRITEN_COLOR_MAP: + case SET_OVERWRITTEN_COLOR_MAP: return { ...prevState, overwrittenColorMap: action.payload || '', @@ -264,7 +264,7 @@ export const ADD_TO_REGIONS_SELECTION_WITH_IDS = `ADD_TO_REGIONS_SELECTION_WITH_ export const NEHUBA_LAYER_CHANGED = `NEHUBA_LAYER_CHANGED` export const SET_CONNECTIVITY_REGION = `SET_CONNECTIVITY_REGION` export const CLEAR_CONNECTIVITY_REGION = `CLEAR_CONNECTIVITY_REGION` -export const SET_OVERRITEN_COLOR_MAP = `SET_OVERRITEN_COLOR_MAP` +export const SET_OVERWRITTEN_COLOR_MAP = `SET_OVERWRITTEN_COLOR_MAP` export const CLEAR_STANDALONE_VOLUMES = `CLEAR_STANDALONE_VOLUMES` @Injectable({ diff --git a/src/ui/connectivityBrowser/connectivityBrowser.component.ts b/src/ui/connectivityBrowser/connectivityBrowser.component.ts index b7886618e..0525e2c8e 100644 --- a/src/ui/connectivityBrowser/connectivityBrowser.component.ts +++ b/src/ui/connectivityBrowser/connectivityBrowser.component.ts @@ -15,7 +15,7 @@ import {distinctUntilChanged, filter, map} from "rxjs/operators"; import { CLEAR_CONNECTIVITY_REGION, SELECT_REGIONS, - SET_OVERRITEN_COLOR_MAP + SET_OVERWRITTEN_COLOR_MAP } from "src/services/state/viewerState.store"; import {safeFilter} from "src/services/stateStore.service"; import {viewerStateNavigateToRegion} from "src/services/state/viewerState.store.helper"; @@ -66,7 +66,7 @@ export class ConnectivityBrowserComponent implements OnInit, AfterViewInit, OnDe }) ) this.store$.dispatch({ - type: SET_OVERRITEN_COLOR_MAP, + type: SET_OVERWRITTEN_COLOR_MAP, payload: flag? CONNECTIVITY_NAME_PLATE : false, }) } @@ -85,7 +85,7 @@ export class ConnectivityBrowserComponent implements OnInit, AfterViewInit, OnDe if (!val) { this.store$.dispatch({ - type: SET_OVERRITEN_COLOR_MAP, + type: SET_OVERWRITTEN_COLOR_MAP, payload: false, }) return @@ -224,13 +224,13 @@ export class ConnectivityBrowserComponent implements OnInit, AfterViewInit, OnDe if (flag) { this.addNewColorMap() this.store$.dispatch({ - type: SET_OVERRITEN_COLOR_MAP, + type: SET_OVERWRITTEN_COLOR_MAP, payload: 'connectivity', }) } else { this.restoreDefaultColormap() - this.store$.dispatch({type: SET_OVERRITEN_COLOR_MAP, payload: null}) + this.store$.dispatch({type: SET_OVERWRITTEN_COLOR_MAP, payload: null}) /** * TODO -- GitLab