You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2018/07/18 15:11:31 UTC

[trafficcontrol] branch master updated: Display form feedback for origin name

This is an automated email from the ASF dual-hosted git repository.

mitchell852 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 60f0e29  Display form feedback for origin name
60f0e29 is described below

commit 60f0e2966cb8b53654e3a77a8f83740529f310e3
Author: Rawlin Peters <ra...@comcast.com>
AuthorDate: Wed Jul 18 09:07:27 2018 -0600

    Display form feedback for origin name
    
    Fix a typo ('hostName' -> 'name') so that form feedback is actually
    displayed for the origin "name" field.
---
 .../app/src/common/modules/form/origin/form.origin.tpl.html       | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/traffic_portal/app/src/common/modules/form/origin/form.origin.tpl.html b/traffic_portal/app/src/common/modules/form/origin/form.origin.tpl.html
index 0cedc54..cd36e21 100644
--- a/traffic_portal/app/src/common/modules/form/origin/form.origin.tpl.html
+++ b/traffic_portal/app/src/common/modules/form/origin/form.origin.tpl.html
@@ -37,10 +37,10 @@ under the License.
             <div class="form-group" ng-class="{'has-error': hasError(originForm.name), 'has-feedback': hasError(originForm.name)}">
                 <label class="control-label col-md-2 col-sm-2 col-xs-12">Name *</label>
                 <div class="col-md-10 col-sm-10 col-xs-12">
-                    <input name="name" type="text" class="form-control" ng-model="origin.name" ng-maxlength="100" ng-pattern="/^\S*$/" required autofocus>
-                    <small class="input-error" ng-show="hasPropertyError(originForm.hostName, 'required')">Required</small>
-                    <small class="input-error" ng-show="hasPropertyError(originForm.hostName, 'maxlength')">Too Long</small>
-                    <small class="input-error" ng-show="hasPropertyError(originForm.hostName, 'pattern')">No spaces</small>
+                    <input name="name" type="text" class="form-control" ng-model="origin.name" ng-maxlength="100" ng-pattern="/^\S+$/" required autofocus>
+                    <small class="input-error" ng-show="hasPropertyError(originForm.name, 'required')">Required</small>
+                    <small class="input-error" ng-show="hasPropertyError(originForm.name, 'maxlength')">Too Long</small>
+                    <small class="input-error" ng-show="hasPropertyError(originForm.name, 'pattern')">No spaces</small>
                     <span ng-show="hasError(originForm.name)" class="form-control-feedback"><i class="fa fa-times"></i></span>
                 </div>
             </div>