mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 04:23:04 +00:00
Fixed form error handler
This commit is contained in:
@@ -106,11 +106,12 @@ export class FormAddError implements Action {
|
||||
payload: {
|
||||
formId: string,
|
||||
fieldId: string,
|
||||
fieldIndex: number,
|
||||
errorMessage: string,
|
||||
};
|
||||
|
||||
constructor(formId: string, fieldId: string, errorMessage: string) {
|
||||
this.payload = {formId, fieldId, errorMessage};
|
||||
constructor(formId: string, fieldId: string, fieldIndex: number, errorMessage: string) {
|
||||
this.payload = {formId, fieldId, fieldIndex, errorMessage};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,11 +119,12 @@ export class FormRemoveErrorAction implements Action {
|
||||
type = FormActionTypes.FORM_REMOVE_ERROR;
|
||||
payload: {
|
||||
formId: string,
|
||||
fieldId: string
|
||||
fieldId: string,
|
||||
fieldIndex: number,
|
||||
};
|
||||
|
||||
constructor(formId: string, fieldId: string) {
|
||||
this.payload = {formId, fieldId};
|
||||
constructor(formId: string, fieldId: string, fieldIndex: number,) {
|
||||
this.payload = {formId, fieldId, fieldIndex};
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user