Browse Source

Display error when entering a non-integer

Change-Id: If4b8d09b61f83a8f6dd8193e5780a3435f5e5fe1
Closes-Bug #1806007
Story: 2004547
Task: 28300
changes/41/621141/4
wangying 3 years ago
committed by Michael Johnson
parent
commit
d50dc1eeda
  1. 4
      neutron_lbaas_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.html

4
neutron_lbaas_dashboard/static/dashboard/project/lbaasv2/workflow/listener/listener.html

@ -50,10 +50,10 @@
ng-model="model.spec.listener.port" ng-pattern="/^\d+$/" min="1" max="65535"
ng-required="true" ng-disabled="model.context.id"
validate-unique="model.listenerPorts">
<span class="help-block" ng-show="(listenerDetailsForm.port.$error.number || listenerDetailsForm.port.$error.required) && listenerDetailsForm.port.$dirty">
<span class="help-block" ng-show="(listenerDetailsForm.port.$error.number || listenerDetailsForm.port.$error.required || listenerDetailsForm.port.$error.pattern) && listenerDetailsForm.port.$dirty">
{$ ::ctrl.portNumberError $}
</span>
<span class="help-block" ng-show="!(listenerDetailsForm.port.$error.number || listenerDetailsForm.port.$error.required) && listenerDetailsForm.port.$error.unique && listenerDetailsForm.port.$dirty">
<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">
{$ ::ctrl.portUniqueError $}
</span>
</div>

Loading…
Cancel
Save