Browse Source

Display error when entering a non-integer

Change-Id: If4b8d09b61f83a8f6dd8193e5780a3435f5e5fe1
Closes-Bug #1806007
Story: 2004547
Task: 28300
tags/6.0.0.0rc1
wangying 6 months ago
parent
commit
d50dc1eeda

+ 2
- 2
neutron_lbaas_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.html View File

@@ -50,10 +50,10 @@
50 50
                ng-model="model.spec.listener.port" ng-pattern="/^\d+$/" min="1" max="65535"
51 51
                ng-required="true" ng-disabled="model.context.id"
52 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 54
           {$ ::ctrl.portNumberError $}
55 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 57
           {$ ::ctrl.portUniqueError $}
58 58
         </span>
59 59
       </div>

Loading…
Cancel
Save