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

Add inline messages for the Add Feedback form #6341

Merged

Conversation

MichelGabriel
Copy link
Contributor

This PR improves the messages when adding new feedback by using ngMessages. Messages are shown inline, and the Save is enabled when everything is valid.

An additional check is done on the 'review' input, a check on the maximum characters.

gn-add-feedback

@josegar74
Copy link
Member

@MichelGabriel something I notice, that should not be related to the PR is that the form doesn't detect that the user is logged. I'm logged as Administrator, but the User information panel indicates:

You are not logged in, please fill in your name, email and organization

That can be done in a separate PR. In GeoNetwork 3 it works fine.

Copy link
Member

@josegar74 josegar74 left a comment

Choose a reason for hiding this comment

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

Tested, works fine.

Nice change. I hope can facilitate to update/integrate #3543

@josegar74 josegar74 merged commit 11fedd3 into geonetwork:main Jun 7, 2022
josegar74 added a commit to GeoCat/core-geonetwork that referenced this pull request Jun 7, 2022
…ude unrequired fields when the user is logged. Hiding the fields trigger the validation, it is required to use data-ng-if directive instead of data-ng-hide
josegar74 added a commit that referenced this pull request Jun 7, 2022
…ired fields when the user is logged. Hiding the fields trigger the validation, it is required to use data-ng-if directive instead of data-ng-hide (#6346)
josegar74 added a commit that referenced this pull request Jun 7, 2022
* Add inline messages for the add feedback form

* Fix path for angular-messages.min.js

Co-authored-by: Jose García <josegar74@gmail.com>
josegar74 added a commit that referenced this pull request Jun 7, 2022
…nrequired fields when the user is logged. Hiding the fields trigger the validation, it is required to use data-ng-if directive instead of data-ng-hide (#6346)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants