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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user