Browse Source

Merge "Display error when entering a non-integer"

Zuul 2 months ago
parent
commit
0c03857b1c

+ 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