2018-06-06 23:25:57 +02:00
|
|
|
<ng-container *ngIf="(ciphers | searchCiphers: searchText) as searchedCiphers">
|
2018-06-08 18:04:03 +02:00
|
|
|
<table class="table table-hover table-list table-ciphers" *ngIf="searchedCiphers.length > 0">
|
2018-06-06 23:25:57 +02:00
|
|
|
<tbody>
|
|
|
|
<tr *ngFor="let c of searchedCiphers">
|
2018-07-05 14:39:22 +02:00
|
|
|
<td (click)="checkCipher(c)" class="table-list-checkbox" *ngIf="!organization">
|
2018-06-07 23:12:11 +02:00
|
|
|
<input type="checkbox" [(ngModel)]="c.checked">
|
2018-06-07 05:00:57 +02:00
|
|
|
</td>
|
2018-06-08 18:45:31 +02:00
|
|
|
<td (click)="checkCipher(c)" class="table-list-icon">
|
2018-06-07 05:00:57 +02:00
|
|
|
<app-vault-icon [cipher]="c"></app-vault-icon>
|
|
|
|
</td>
|
2018-06-07 23:12:11 +02:00
|
|
|
<td (click)="checkCipher(c)">
|
|
|
|
<a href="#" appStopClick appStopProp (click)="selectCipher(c)" title="{{'editItem' | i18n}}">{{c.name}}</a>
|
2018-07-05 16:10:30 +02:00
|
|
|
<i class="fa fa-share-alt" appStopProp *ngIf="!organization && c.organizationId" title="{{'shared' | i18n}}"></i>
|
2018-06-08 18:45:31 +02:00
|
|
|
<i class="fa fa-paperclip" appStopProp *ngIf="c.hasAttachments" title="{{'attachments' | i18n}}"></i>
|
2018-06-07 23:12:11 +02:00
|
|
|
<br>
|
|
|
|
<small appStopProp>{{c.subTitle}}</small>
|
2018-06-07 05:00:57 +02:00
|
|
|
</td>
|
2018-06-08 18:04:03 +02:00
|
|
|
<td class="table-list-options">
|
2018-06-07 05:00:57 +02:00
|
|
|
<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">
|
2018-06-08 18:04:03 +02:00
|
|
|
<i class="fa fa-cog fa-lg"></i>
|
2018-06-06 23:25:57 +02:00
|
|
|
</button>
|
2018-06-07 05:00:57 +02:00
|
|
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
2018-06-08 18:04:03 +02:00
|
|
|
<a class="dropdown-item" href="#" appStopClick *ngIf="c.type === cipherType.Login" (click)="copy(c.login.password, 'password', 'password')">
|
2018-06-07 23:12:11 +02:00
|
|
|
<i class="fa fa-fw fa-clipboard"></i>
|
|
|
|
{{'copyPassword' | i18n}}
|
|
|
|
</a>
|
2018-06-08 18:04:03 +02:00
|
|
|
<a class="dropdown-item" href="#" appStopClick (click)="attachments(c)">
|
2018-06-07 23:12:11 +02:00
|
|
|
<i class="fa fa-fw fa-paperclip"></i>
|
|
|
|
{{'attachments' | i18n}}
|
|
|
|
</a>
|
2018-07-05 14:39:22 +02:00
|
|
|
<a class="dropdown-item" href="#" appStopClick *ngIf="!organization && !c.organizationId" (click)="share(c)">
|
2018-06-07 23:12:11 +02:00
|
|
|
<i class="fa fa-fw fa-share-alt"></i>
|
|
|
|
{{'share' | i18n}}
|
|
|
|
</a>
|
2018-06-08 18:04:03 +02:00
|
|
|
<a class="dropdown-item" href="#" appStopClick *ngIf="c.organizationId" (click)="collections(c)">
|
2018-06-07 23:12:11 +02:00
|
|
|
<i class="fa fa-fw fa-cubes"></i>
|
|
|
|
{{'collections' | i18n}}
|
|
|
|
</a>
|
2018-06-08 18:04:03 +02:00
|
|
|
<a class="dropdown-item text-danger" href="#" appStopClick (click)="delete(c)">
|
2018-06-07 23:12:11 +02:00
|
|
|
<i class="fa fa-fw fa-trash-o"></i>
|
|
|
|
{{'delete' | i18n}}
|
|
|
|
</a>
|
2018-06-06 23:25:57 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<div class="no-items" *ngIf="searchedCiphers.length === 0">
|
2018-06-11 15:17:24 +02:00
|
|
|
<i class="fa fa-spinner fa-spin text-muted" *ngIf="!loaded"></i>
|
2018-06-06 23:25:57 +02:00
|
|
|
<ng-container *ngIf="loaded">
|
|
|
|
<p>{{'noItemsInList' | i18n}}</p>
|
2018-07-04 15:55:52 +02:00
|
|
|
<button (click)="addCipher()" class="btn btn-outline-primary" *ngIf="showAddNew">
|
2018-06-29 22:55:54 +02:00
|
|
|
<i class="fa fa-plus fa-fw"></i>{{'addItem' | i18n}}</button>
|
2018-06-06 23:25:57 +02:00
|
|
|
</ng-container>
|
|
|
|
</div>
|
|
|
|
</ng-container>
|