Add trackBy option (#853)
This commit is contained in:
parent
538afd7529
commit
d980f274e3
|
@ -209,7 +209,7 @@
|
||||||
<div class="box-content">
|
<div class="box-content">
|
||||||
<ng-container *ngIf="cipher.login.hasUris">
|
<ng-container *ngIf="cipher.login.hasUris">
|
||||||
<div class="box-content-row box-content-row-multi" appBoxRow
|
<div class="box-content-row box-content-row-multi" appBoxRow
|
||||||
*ngFor="let u of cipher.login.uris; let i = index">
|
*ngFor="let u of cipher.login.uris; let i = index; trackBy:trackByFunction">
|
||||||
<a href="#" appStopClick (click)="removeUri(u)" title="{{'remove' | i18n}}">
|
<a href="#" appStopClick (click)="removeUri(u)" title="{{'remove' | i18n}}">
|
||||||
<i class="fa fa-minus-circle fa-lg"></i>
|
<i class="fa fa-minus-circle fa-lg"></i>
|
||||||
</a>
|
</a>
|
||||||
|
@ -282,7 +282,7 @@
|
||||||
<div class="box-content">
|
<div class="box-content">
|
||||||
<ng-container *ngIf="cipher.hasFields">
|
<ng-container *ngIf="cipher.hasFields">
|
||||||
<div class="box-content-row box-content-row-multi" appBoxRow
|
<div class="box-content-row box-content-row-multi" appBoxRow
|
||||||
*ngFor="let f of cipher.fields; let i = index"
|
*ngFor="let f of cipher.fields; let i = index; trackBy:trackByFunction"
|
||||||
[ngClass]="{'box-content-row-checkbox': f.type === fieldType.Boolean}">
|
[ngClass]="{'box-content-row-checkbox': f.type === fieldType.Boolean}">
|
||||||
<a href="#" appStopClick (click)="removeField(f)" title="{{'remove' | i18n}}">
|
<a href="#" appStopClick (click)="removeField(f)" title="{{'remove' | i18n}}">
|
||||||
<i class="fa fa-minus-circle fa-lg"></i>
|
<i class="fa fa-minus-circle fa-lg"></i>
|
||||||
|
|
Loading…
Reference in New Issue