Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editor: fix submit button with async validator #528

Merged
merged 1 commit into from
Sep 26, 2019

Conversation

jma
Copy link
Contributor

@jma jma commented Sep 25, 2019

  • Disables submit button for invalid async validator.
  • Removes useless debug traces.
  • Uses core unique validator for remote input component.

Co-Authored-by: Johnny Mariéthoz [email protected]
Co-Authored-by: Bertrand Zuchuat [email protected]
Co-Authored-by: Alicia Zangger [email protected]

To Test

  • ./scripts/bootstrap
  • create a new item with an existing barcode: the submit button should be disabled

@jma jma force-pushed the maj-fix-editor-asyncvalidator branch from ebb498a to d0aed89 Compare September 25, 2019 12:22
@@ -217,6 +221,7 @@ export class EditorComponent implements OnInit {
}

validationErrors(errors) {
this.formValidationErrors = errors;
// this.formValidationErrors = errors;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this line

@jma jma force-pushed the maj-fix-editor-asyncvalidator branch from d0aed89 to 6bcc4eb Compare September 26, 2019 08:16
@jma jma force-pushed the maj-fix-editor-asyncvalidator branch from 6bcc4eb to e698b74 Compare September 26, 2019 08:22
@jma jma force-pushed the maj-fix-editor-asyncvalidator branch from e698b74 to 1ee45a7 Compare September 26, 2019 09:04
* Disables submit button for invalid async validator: i.e. for item
  barcode uniqueness validation.
* Removes useless debug traces.
* Uses core unique validator for remote input component.

Co-Authored-by: Johnny Mariéthoz <[email protected]>
Co-Authored-by: Bertrand Zuchuat <[email protected]>
Co-Authored-by: Alicia Zangger <[email protected]>
@jma jma force-pushed the maj-fix-editor-asyncvalidator branch from 1ee45a7 to 63e37d9 Compare September 26, 2019 09:46
@Garfield-fr Garfield-fr merged commit 536ca63 into rero:dev Sep 26, 2019
@jma jma deleted the maj-fix-editor-asyncvalidator branch December 11, 2019 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants