mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +01:00
use true false value directive for boolean field
This commit is contained in:
parent
5412a43509
commit
0fc5982f26
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit 22c12cf5c4cc1c00792a9717fbb3d85fc53bed99
|
Subproject commit a7a58ae8f306fad1f72110754ed9cccf19fee482
|
@ -24,7 +24,6 @@
|
|||||||
"@ngtools/webpack": "1.10.2",
|
"@ngtools/webpack": "1.10.2",
|
||||||
"@types/chrome": "0.0.51",
|
"@types/chrome": "0.0.51",
|
||||||
"@types/jasmine": "^2.8.2",
|
"@types/jasmine": "^2.8.2",
|
||||||
"@types/jquery": "^3.2.16",
|
|
||||||
"@types/lunr": "2.1.5",
|
"@types/lunr": "2.1.5",
|
||||||
"@types/mousetrap": "^1.6.0",
|
"@types/mousetrap": "^1.6.0",
|
||||||
"@types/node": "8.0.19",
|
"@types/node": "8.0.19",
|
||||||
@ -68,8 +67,7 @@
|
|||||||
"tslint": "^5.9.1",
|
"tslint": "^5.9.1",
|
||||||
"tslint-loader": "^3.5.3",
|
"tslint-loader": "^3.5.3",
|
||||||
"typescript": "^2.7.1",
|
"typescript": "^2.7.1",
|
||||||
"webpack": "^3.10.0",
|
"webpack": "^3.10.0"
|
||||||
"webpack-merge": "^4.1.0"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "5.2.0",
|
"@angular/animations": "5.2.0",
|
||||||
|
@ -49,6 +49,7 @@ import { FallbackSrcDirective } from 'jslib/angular/directives/fallback-src.dire
|
|||||||
import { InputVerbatimDirective } from 'jslib/angular/directives/input-verbatim.directive';
|
import { InputVerbatimDirective } from 'jslib/angular/directives/input-verbatim.directive';
|
||||||
import { StopClickDirective } from 'jslib/angular/directives/stop-click.directive';
|
import { StopClickDirective } from 'jslib/angular/directives/stop-click.directive';
|
||||||
import { StopPropDirective } from 'jslib/angular/directives/stop-prop.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 { I18nPipe } from 'jslib/angular/pipes/i18n.pipe';
|
||||||
import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe';
|
import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe';
|
||||||
@ -112,6 +113,7 @@ import { IconComponent } from 'jslib/angular/components/icon.component';
|
|||||||
StopPropDirective,
|
StopPropDirective,
|
||||||
SyncComponent,
|
SyncComponent,
|
||||||
TabsComponent,
|
TabsComponent,
|
||||||
|
TrueFalseValueDirective,
|
||||||
TwoFactorOptionsComponent,
|
TwoFactorOptionsComponent,
|
||||||
TwoFactorComponent,
|
TwoFactorComponent,
|
||||||
ViewComponent,
|
ViewComponent,
|
||||||
|
@ -285,7 +285,8 @@
|
|||||||
*ngIf="f.type === fieldType.Hidden" placeholder="{{'value' | i18n}}">
|
*ngIf="f.type === fieldType.Hidden" placeholder="{{'value' | i18n}}">
|
||||||
</div>
|
</div>
|
||||||
<input id="fieldValue{{i}}" name="Field.Value{{i}}" type="checkbox"
|
<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">
|
<div class="action-buttons" *ngIf="f.type === fieldType.Hidden">
|
||||||
<a class="row-btn" href="#" appStopClick appBlurClick
|
<a class="row-btn" href="#" appStopClick appBlurClick
|
||||||
title="{{'toggleVisibility' | i18n}}" (click)="toggleFieldValue(f)">
|
title="{{'toggleVisibility' | i18n}}" (click)="toggleFieldValue(f)">
|
||||||
|
Loading…
Reference in New Issue
Block a user