diff --git a/docs/releases/v2.2.7.md b/docs/releases/v2.2.7.md new file mode 100644 index 0000000000000000000000000000000000000000..57ba9638ee241a9383bffa0a0e816cfa2ad63485 --- /dev/null +++ b/docs/releases/v2.2.7.md @@ -0,0 +1,7 @@ +# v2.2.7 + +03 Nov 2020 + +## Bugfixes + +- Changed the name of Julich-Brain to better reflect the atlas \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 1c35290ef120aa15db485eb356448d3973077d08..84be99658419b3b6f6776a860578fdb2b42c4ba6 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -40,6 +40,9 @@ pages: - Fetching datasets: 'advanced/datasets.md' - Display non-atlas volumes: 'advanced/otherVolumes.md' - Release notes: + - v2.2.7: 'releases/v2.2.7.md' + - v2.2.5: 'releases/v2.2.5.md' + - v2.2.4: 'releases/v2.2.4.md' - v2.2.3: 'releases/v2.2.3.md' - v2.2.2: 'releases/v2.2.2.md' - v2.2.1: 'releases/v2.2.1.md' diff --git a/src/ui/nehubaContainer/splashScreen/splashScreen.template.html b/src/ui/nehubaContainer/splashScreen/splashScreen.template.html index 56c9e61fe1623e80ab8a4f64d609aab230d71b67..9e4ddfcf883cad44de3a0d6f2bbc623292b31a38 100644 --- a/src/ui/nehubaContainer/splashScreen/splashScreen.template.html +++ b/src/ui/nehubaContainer/splashScreen/splashScreen.template.html @@ -34,7 +34,7 @@ *ngFor="let parcellation of template.parcellations" mat-button color="primary"> - {{ parcellation.name }} + {{ parcellation.name | tmpParcNamePipe }} </button> </mat-card-content> diff --git a/src/ui/viewerStateController/viewerStateCFull/viewerState.template.html b/src/ui/viewerStateController/viewerStateCFull/viewerState.template.html index 3ddd84ecbbf6f79bbd69ca4c6f359a782c2b1ae2..6a341997d00442b6bc64b0bf594222b80256777d 100644 --- a/src/ui/viewerStateController/viewerStateCFull/viewerState.template.html +++ b/src/ui/viewerStateController/viewerStateCFull/viewerState.template.html @@ -86,7 +86,7 @@ <mat-option *ngFor="let parcellation of (templateSelected.parcellations | appendTooltipTextPipe)" [value]="parcellation.name"> - {{ parcellation.name }} + {{ parcellation.name | tmpParcNamePipe }} </mat-option> </mat-select> </mat-form-field> diff --git a/src/util/pipes/_tmpParcName.pipe.ts b/src/util/pipes/_tmpParcName.pipe.ts new file mode 100644 index 0000000000000000000000000000000000000000..455249098ce35930a1f303b7e4ad7b81f46d9813 --- /dev/null +++ b/src/util/pipes/_tmpParcName.pipe.ts @@ -0,0 +1,17 @@ +import { Pipe, PipeTransform } from "@angular/core"; + +/** + * this is a temporary pipe class that transform + * JuBrain -> Julich-Brain + * in prod version of IAV + */ + +@Pipe({ + name: 'tmpParcNamePipe' +}) + +export class TmpParcNamePipe implements PipeTransform{ + public transform(input: string): string{ + return input.replace(/JuBrain/gi, 'Julich-Brain') + } +} \ No newline at end of file diff --git a/src/util/util.module.ts b/src/util/util.module.ts index f60c57f7efeaba1c4812663f0d0ee62320f50c9e..56f146232f067e4fffe73dacc28bfa45742881a9 100644 --- a/src/util/util.module.ts +++ b/src/util/util.module.ts @@ -13,6 +13,7 @@ import { NmToMm } from "./pipes/numbers.pipe"; import { SwitchDirective } from "./directives/switch.directive"; import { MediaQueryDirective } from './directives/mediaQuery.directive' import { LayoutModule } from "@angular/cdk/layout"; +import { TmpParcNamePipe } from "./pipes/_tmpParcName.pipe"; @NgModule({ imports:[ @@ -30,7 +31,8 @@ import { LayoutModule } from "@angular/cdk/layout"; AddUnitAndJoin, NmToMm, SwitchDirective, - MediaQueryDirective + MediaQueryDirective, + TmpParcNamePipe, ], exports: [ FilterNullPipe, @@ -44,7 +46,8 @@ import { LayoutModule } from "@angular/cdk/layout"; AddUnitAndJoin, NmToMm, SwitchDirective, - MediaQueryDirective + MediaQueryDirective, + TmpParcNamePipe, ] })