Skip to content

Commit

Permalink
use ip4Address directive to validate lan on mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
geirkairam committed Oct 17, 2015
1 parent 37a023f commit 94ff62c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ <h2>
placeholder="{{'ip.meshViaLAN.lanip.placeholder' | translate}}"
data-ng-model="wizard.ip.v4.lan"
data-ng-required="wizard.ip.meshLan && !state.ip.generate"
data-ng-pattern="{{ipPattern}}">
data-ipv4-address>
<!-- TODO use ip npm package for validation -->
<span class="fa form-control-feedback" data-ng-class="{
'fa-times': hasError('ipv4Lan'),
Expand All @@ -533,7 +533,7 @@ <h2>
<div data-ng-show="wizardForm.ipv4Lan.$error.required" translate>
.error.required
</div>
<div data-ng-show="wizardForm.ipv4Lan.$error.pattern" translate>
<div data-ng-show="wizardForm.ipv4Lan.$error.ipv4Address" translate>
.error.ipPattern
</div>
</div>
Expand Down

0 comments on commit 94ff62c

Please sign in to comment.