Skip to content

Fixed validation before typing in new entry dialog #7020#7471

Merged
calixtus merged 3 commits into
JabRef:masterfrom
AliZDev-v0:fix-error-message-7020
Mar 5, 2021
Merged

Fixed validation before typing in new entry dialog #7020#7471
calixtus merged 3 commits into
JabRef:masterfrom
AliZDev-v0:fix-error-message-7020

Conversation

@AliZDev-v0

@AliZDev-v0 AliZDev-v0 commented Feb 27, 2021

Copy link
Copy Markdown
Contributor

Do not show an error message if there is no error
Fixes #7020

@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Feb 27, 2021
@Siedlerchr

Copy link
Copy Markdown
Member

For me this doesn't make any change, because you still have the init of the visualizer in line 178 (at the bottom of initialize)

@Siedlerchr Siedlerchr added status: changes-required Pull requests that are not yet complete and removed status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers labels Feb 27, 2021
@AliZDev-v0

AliZDev-v0 commented Feb 27, 2021

Copy link
Copy Markdown
Contributor Author

@Siedlerchr FIxed

Comment on lines +82 to +85
ControlHelper.setAction(generateButton, this.getDialogPane(), event -> {
viewModel.runFetcherWorker();
visualizer.initVisualization(viewModel.idFieldValidationStatus(), idTextField, true);
});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry, but this does not seem to work, since the generate button is disabled by default and the validation does only check if the button isNotBlank.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed,

@calixtus calixtus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me now. Thanks!

@calixtus calixtus added status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers and removed status: changes-required Pull requests that are not yet complete labels Mar 4, 2021
@calixtus

calixtus commented Mar 5, 2021

Copy link
Copy Markdown
Member

Thanks for your contribution!

@calixtus calixtus changed the title Error message before starting new entry from ID #7020 Fixed validation before typing in new entry dialog #7020 Mar 5, 2021
@calixtus calixtus merged commit 90424b3 into JabRef:master Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error message before starting new entry from ID

3 participants