1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 02:33:46 +00:00

highlight active cipher and default folder for add

This commit is contained in:
Kyle Spearrin
2018-01-29 17:57:58 -05:00
parent 6d23338aa4
commit 7d2d4eafcb
5 changed files with 17 additions and 10 deletions

View File

@@ -11,17 +11,17 @@
</div>
<div class="content">
<div class="list">
<a *ngFor="let cipher of ciphers" appStopClick (click)="cipherClicked(cipher)"
href="#" title="{{'viewItem' | i18n}}">
<app-vault-icon [cipher]="cipher"></app-vault-icon>
<a *ngFor="let c of ciphers" appStopClick (click)="cipherClicked(c)"
href="#" title="{{'viewItem' | i18n}}" [ngClass]="{'active': c.id === activeCipherId}">
<app-vault-icon [cipher]="c"></app-vault-icon>
<span class="text">
{{cipher.name}}
<i class="fa fa-share-alt text-muted" *ngIf="cipher.organizationId"
{{c.name}}
<i class="fa fa-share-alt text-muted" *ngIf="c.organizationId"
title="{{'shared' | i18n}}"></i>
<i class="fa fa-paperclip text-muted" *ngIf="cipher.attachments"
<i class="fa fa-paperclip text-muted" *ngIf="c.hasAttachments"
title="{{'attachments' | i18n}}"></i>
</span>
<span class="detail">{{cipher.subTitle}}</span>
<span class="detail">{{c.subTitle}}</span>
</a>
</div>
</div>