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

Fixes #17328: Resource manager should talk about saved/unsaved and not commited/not commited #1193

Conversation

RaphaelGauthier
Copy link
Member

nbUncommitted = $scope.selectedTechnique.resources.filter(resource => resource.state != 'untouched').length;
if(nbUncommitted <= 0){
nbUnsaved = $scope.selectedTechnique.resources.filter(resource => resource.state != 'untouched').length;
if(nbUnsaved <= 0){
msg = "There " + (nbResources > 1 ? "are " : "is ") + nbResources + " resource file" + (nbResources > 1 ? "s." : ".");
Copy link
Member

Choose a reason for hiding this comment

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

Funny thing i learned, but to think in the future, 0 is plural in english, and not singular, so it should be nbResources === 1 ? is : are

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 6c4adf2 into Normation:branches/rudder/6.1 May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants