From 0fb98642d4058d430b58edc753f885f172e416c4 Mon Sep 17 00:00:00 2001 From: kialam Date: Fri, 3 Aug 2018 15:32:55 -0400 Subject: [PATCH] Only show the character limit if the user exceeds it --- awx/ui/client/src/templates/job_templates/job-template.form.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/ui/client/src/templates/job_templates/job-template.form.js b/awx/ui/client/src/templates/job_templates/job-template.form.js index 1e571cf121..590140c1e8 100644 --- a/awx/ui/client/src/templates/job_templates/job-template.form.js +++ b/awx/ui/client/src/templates/job_templates/job-template.form.js @@ -232,7 +232,8 @@ function(NotificationsList, i18n) { helperText: { classCondition: 'job_template_labels_isValid === true', ngClass: 'at-InputLabel--error', - text: i18n._('Max 512 Char'), + ngShow: 'job_template_labels_isValid !== true', + text: i18n._('Max 512 Characters'), }, ngDisabled: '!(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)' },