updated with the latest changes

This commit is contained in:
Giuseppe Digilio
2018-06-11 11:13:05 +02:00
parent 10c739c903
commit 5ec01031d9
23 changed files with 375 additions and 242 deletions

View File

@@ -114,6 +114,29 @@ export class FormAddError implements Action {
}
}
export class FormRemoveErrorAction implements Action {
type = FormActionTypes.FORM_REMOVE_ERROR;
payload: {
formId: string,
fieldId: string
};
constructor(formId: string, fieldId: string) {
this.payload = {formId, fieldId};
}
}
export class FormClearErrorsAction implements Action {
type = FormActionTypes.FORM_CLEAR_ERRORS;
payload: {
formId: string
};
constructor(formId: string) {
this.payload = {formId};
}
}
/* tslint:enable:max-classes-per-file */
/**
@@ -125,3 +148,5 @@ export type FormAction = FormInitAction
| FormRemoveAction
| FormStatusChangeAction
| FormAddError
| FormClearErrorsAction
| FormRemoveErrorAction