mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 12:33:07 +00:00
updated with the latest changes
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user