feat(avvikelserapport): changed router navigation, cleanup /TV-407-2 to develop

Squashed commit of the following:

commit a6fe7a346cb5b66619281141fd29c85b7019946b
Author: fueno <nicolas.fuentes-maturana@arbetsformedlingen.se>
Date:   Fri Sep 17 08:46:16 2021 +0200

    TV-407-2: changed router for navigate back,
This commit is contained in:
Nicolas Fuentes Maturana
2021-09-17 08:52:06 +02:00
parent 1b281be531
commit 2236cc9ec8
3 changed files with 16 additions and 34 deletions

View File

@@ -21,19 +21,6 @@ export class DescriptionIsRequiredCheck {
}
}
export class DayOrPartOfDayIsRequiredCheck {
static CheckIfRequired(
controlToValidateName: string,
): ValidatorFn {
return (fg: AbstractControl): { [key: string]: boolean } => {
const valueOfControlToValidate = fg?.get(controlToValidateName)?.value as string;
const isRequired = valueOfControlToValidate === null && fg?.get('alternative').value === Alternative.FRANVARO;
return isRequired ? { dayOrPartOfDayIsRequired: true } : null;
};
}
}
export class OrsakerIsRequiredCheck {
static CheckIfRequired(
nestedFormGroupName: string,