1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

apply true/false directive for boolean fields

This commit is contained in:
Kyle Spearrin
2018-06-06 14:35:56 -04:00
parent 5d6e8bd734
commit 6cb09d8511
4 changed files with 6 additions and 2 deletions

View File

@@ -265,7 +265,8 @@
*ngIf="f.type === fieldType.Hidden" placeholder="{{'value' | i18n}}">
</div>
<input id="fieldValue{{i}}" name="Field.Value{{i}}" type="checkbox"
[(ngModel)]="f.value" *ngIf="f.type === fieldType.Boolean">
[(ngModel)]="f.value" *ngIf="f.type === fieldType.Boolean"
appTrueFalseValue trueValue="true" falseValue="false">
<div class="action-buttons" *ngIf="f.type === fieldType.Hidden">
<a class="row-btn" href="#" appStopClick appBlurClick
title="{{'toggleVisibility' | i18n}}" (click)="toggleFieldValue(f)">