1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 17:53:39 +00:00

use true false value directive for boolean field

This commit is contained in:
Kyle Spearrin
2018-06-06 14:30:26 -04:00
parent 5412a43509
commit 0fc5982f26
4 changed files with 6 additions and 5 deletions

View File

@@ -285,7 +285,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)">