Merge pull request #11634 from pratu16x7/variant-modal-fix

[minor] fix plurals spacing
This commit is contained in:
Prateeksha Singh 2017-11-17 15:34:34 +05:30 committed by GitHub
commit 241d64d8c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,8 +344,7 @@ $.extend(erpnext.item, {
let no_of_combinations = lengths.reduce((a, b) => a * b, 1);
me.multiple_variant_dialog.get_primary_btn()
.html(__(
`Make ${no_of_combinations} Variant
${no_of_combinations === 1 ? '' : 's'}`
`Make ${no_of_combinations} Variant${no_of_combinations === 1 ? '' : 's'}`
));
me.multiple_variant_dialog.enable_primary_action();
}