Skip to content

Commit

Permalink
feat(package): only show the enabled rules in the info component #68
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNahas committed Aug 1, 2018
1 parent 798ced0 commit 4b82c63
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<mat-card>
<mat-card-content fxLayout="column" fxLayoutAlign="start">

<div class="info-row">
<div class="info-row" *ngIf="passwordComponent.enableLowerCaseLetterRule">
<div *ngIf="passwordComponent.containAtLeastOneLowerCaseLetter; then done else error">
</div>
<ng-template #done>
Expand All @@ -15,7 +15,7 @@
</div>
</div>

<div class="info-row">
<div class="info-row" *ngIf="passwordComponent.enableUpperCaseLetterRule">
<div *ngIf="passwordComponent.containAtLeastOneUpperCaseLetter; then done else error">
</div>
<ng-template #done>
Expand All @@ -29,7 +29,7 @@
</div>
</div>

<div class="info-row">
<div class="info-row" *ngIf="passwordComponent.enableDigitRule">
<div *ngIf="passwordComponent.containAtLeastOneDigit; then done else error">
</div>
<ng-template #done>
Expand All @@ -43,7 +43,7 @@
</div>
</div>

<div class="info-row">
<div class="info-row" *ngIf="passwordComponent.enableSpecialCharRule">
<div *ngIf="passwordComponent.containAtLeastOneSpecialChar; then done else error">
</div>
<ng-template #done>
Expand All @@ -57,7 +57,7 @@
</div>
</div>

<div class="info-row">
<div class="info-row" *ngIf="passwordComponent.enableLengthRule">
<div *ngIf="passwordComponent.containAtLeastEightChars; then done else error">
</div>
<ng-template #done>
Expand All @@ -67,7 +67,7 @@
<mat-icon color="warn">error</mat-icon>
</ng-template>
<div>
<p>contains at least eight characters</p>
<p>contains at least {{passwordComponent.min}} characters</p>
</div>
</div>

Expand Down

0 comments on commit 4b82c63

Please sign in to comment.