2018-06-06 23:25:57 +02:00
|
|
|
<ng-container *ngIf="(ciphers | searchCiphers: searchText) as searchedCiphers">
|
|
|
|
<table class="table table-hover table-sm" *ngIf="searchedCiphers.length > 0">
|
|
|
|
<tbody>
|
|
|
|
<tr *ngFor="let c of searchedCiphers">
|
|
|
|
<td>
|
2018-06-07 05:00:57 +02:00
|
|
|
<input type="checkbox">
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<app-vault-icon [cipher]="c"></app-vault-icon>
|
|
|
|
</td>
|
|
|
|
<td>
|
2018-06-07 15:05:25 +02:00
|
|
|
<a href="#" appStopClick (click)="selectCipher(c)" title="{{'editItem' | i18n}}">{{c.name}}</a>
|
2018-06-07 05:00:57 +02:00
|
|
|
<i class="fa fa-share-alt text-muted" *ngIf="c.organizationId" title="{{'shared' | i18n}}"></i>
|
|
|
|
<i class="fa fa-paperclip text-muted" *ngIf="c.hasAttachments" title="{{'attachments' | i18n}}"></i>
|
|
|
|
<small>{{c.subTitle}}</small>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div class="dropdown" appListDropdown>
|
2018-06-06 23:25:57 +02:00
|
|
|
<button class="btn btn-outline-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true"
|
|
|
|
aria-expanded="false">
|
|
|
|
<i class="fa fa-cog"></i>
|
|
|
|
</button>
|
2018-06-07 05:00:57 +02:00
|
|
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
2018-06-06 23:25:57 +02:00
|
|
|
<a class="dropdown-item" href="#">Action</a>
|
|
|
|
<a class="dropdown-item" href="#">Another action</a>
|
|
|
|
<a class="dropdown-item" href="#">Something else here</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<div class="no-items" *ngIf="searchedCiphers.length === 0">
|
|
|
|
<i class="fa fa-spinner fa-spin fa-3x" *ngIf="!loaded"></i>
|
|
|
|
<ng-container *ngIf="loaded">
|
|
|
|
<i class="fa fa-frown-o fa-4x"></i>
|
|
|
|
<p>{{'noItemsInList' | i18n}}</p>
|
|
|
|
<button (click)="addCipher()" class="btn block primary link">{{'addItem' | i18n}}</button>
|
|
|
|
</ng-container>
|
|
|
|
</div>
|
|
|
|
</ng-container>
|