From 6cb09d85114605a8557a76e0efbd9e0bf091c1bf Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 6 Jun 2018 14:35:56 -0400 Subject: [PATCH] apply true/false directive for boolean fields --- jslib | 2 +- src/app/app-routing.module.ts | 1 + src/app/app.module.ts | 2 ++ src/app/vault/add-edit.component.html | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index 22c12cf5..a7a58ae8 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 22c12cf5c4cc1c00792a9717fbb3d85fc53bed99 +Subproject commit a7a58ae8f306fad1f72110754ed9cccf19fee482 diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 061effdd..3045b7e7 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -11,6 +11,7 @@ import { LockComponent } from './accounts/lock.component'; import { LoginComponent } from './accounts/login.component'; import { RegisterComponent } from './accounts/register.component'; import { TwoFactorComponent } from './accounts/two-factor.component'; + import { VaultComponent } from './vault/vault.component'; const routes: Routes = [ diff --git a/src/app/app.module.ts b/src/app/app.module.ts index d33818a5..8080a533 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -35,6 +35,7 @@ import { BoxRowDirective } from 'jslib/angular/directives/box-row.directive'; import { FallbackSrcDirective } from 'jslib/angular/directives/fallback-src.directive'; import { StopClickDirective } from 'jslib/angular/directives/stop-click.directive'; import { StopPropDirective } from 'jslib/angular/directives/stop-prop.directive'; +import { TrueFalseValueDirective } from 'jslib/angular/directives/true-false-value.directive'; import { I18nPipe } from 'jslib/angular/pipes/i18n.pipe'; import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe'; @@ -90,6 +91,7 @@ import { ViewComponent } from './vault/view.component'; SettingsComponent, StopClickDirective, StopPropDirective, + TrueFalseValueDirective, TwoFactorComponent, TwoFactorOptionsComponent, VaultComponent, diff --git a/src/app/vault/add-edit.component.html b/src/app/vault/add-edit.component.html index 661b454a..4a619fb8 100644 --- a/src/app/vault/add-edit.component.html +++ b/src/app/vault/add-edit.component.html @@ -265,7 +265,8 @@ *ngIf="f.type === fieldType.Hidden" placeholder="{{'value' | i18n}}"> + [(ngModel)]="f.value" *ngIf="f.type === fieldType.Boolean" + appTrueFalseValue trueValue="true" falseValue="false">