summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangying <wangying@gohighsec.com>2018-11-30 18:10:32 +0800
committerMichael Johnson <johnsomor@gmail.com>2019-02-20 21:53:09 +0000
commitd50dc1eedafe5037e6d6d07c4eeeade9a20d6518 (patch)
treea8449ba8bc71e097a150e35fd972e983fdcb8fff
parentf1327e017e03f6a9c731b00d045aea2aa9539e0e (diff)
Display error when entering a non-integer
Notes
Notes (review): Code-Review+2: Carlos Goncalves <cgoncalves@redhat.com> Code-Review+2: Nir Magnezi <nmagnezi@redhat.com> Workflow+1: Nir Magnezi <nmagnezi@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 20 Feb 2019 22:35:09 +0000 Reviewed-on: https://review.openstack.org/621141 Project: openstack/neutron-lbaas-dashboard Branch: refs/heads/master
-rw-r--r--neutron_lbaas_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/neutron_lbaas_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.html b/neutron_lbaas_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.html
index 5ed33d3..06c35a2 100644
--- a/neutron_lbaas_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.html
+++ b/neutron_lbaas_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.html
@@ -50,10 +50,10 @@
50 ng-model="model.spec.listener.port" ng-pattern="/^\d+$/" min="1" max="65535" 50 ng-model="model.spec.listener.port" ng-pattern="/^\d+$/" min="1" max="65535"
51 ng-required="true" ng-disabled="model.context.id" 51 ng-required="true" ng-disabled="model.context.id"
52 validate-unique="model.listenerPorts"> 52 validate-unique="model.listenerPorts">
53 <span class="help-block" ng-show="(listenerDetailsForm.port.$error.number || listenerDetailsForm.port.$error.required) && listenerDetailsForm.port.$dirty"> 53 <span class="help-block" ng-show="(listenerDetailsForm.port.$error.number || listenerDetailsForm.port.$error.required || listenerDetailsForm.port.$error.pattern) && listenerDetailsForm.port.$dirty">
54 {$ ::ctrl.portNumberError $} 54 {$ ::ctrl.portNumberError $}
55 </span> 55 </span>
56 <span class="help-block" ng-show="!(listenerDetailsForm.port.$error.number || listenerDetailsForm.port.$error.required) && listenerDetailsForm.port.$error.unique && listenerDetailsForm.port.$dirty"> 56 <span class="help-block" ng-show="!(listenerDetailsForm.port.$error.number || listenerDetailsForm.port.$error.required || listenerDetailsForm.port.$error.pattern) && listenerDetailsForm.port.$error.unique && listenerDetailsForm.port.$dirty">
57 {$ ::ctrl.portUniqueError $} 57 {$ ::ctrl.portUniqueError $}
58 </span> 58 </span>
59 </div> 59 </div>