2019-03-19 17:44:22 +01:00
|
|
|
<ng-container *ngIf="(isPaging() ? pagedCiphers : ciphers) as filteredCiphers">
|
|
|
|
<table class="table table-hover table-list table-ciphers" *ngIf="filteredCiphers.length" infiniteScroll
|
|
|
|
[infiniteScrollDistance]="1" [infiniteScrollDisabled]="!isPaging()" (scrolled)="loadMore()">
|
2018-06-06 23:25:57 +02:00
|
|
|
<tbody>
|
2019-03-19 17:44:22 +01:00
|
|
|
<tr *ngFor="let c of filteredCiphers">
|
2018-07-05 14:39:22 +02:00
|
|
|
<td (click)="checkCipher(c)" class="table-list-checkbox" *ngIf="!organization">
|
2018-09-24 23:45:35 +02:00
|
|
|
<input type="checkbox" [(ngModel)]="c.checked" appStopProp>
|
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-08-16 14:46:49 +02:00
|
|
|
<td (click)="checkCipher(c)" class="reduced-lh wrap">
|
2019-02-21 22:50:37 +01:00
|
|
|
<a href="#" appStopClick appStopProp (click)="selectCipher(c)"
|
|
|
|
title="{{'editItem' | i18n}}">{{c.name}}</a>
|
|
|
|
<i class="fa fa-share-alt" appStopProp *ngIf="!organization && c.organizationId"
|
|
|
|
title="{{'shared' | i18n}}"></i>
|
2018-11-14 21:20:17 +01:00
|
|
|
<ng-container *ngIf="c.hasAttachments">
|
2019-02-21 22:50:37 +01:00
|
|
|
<i class="fa fa-paperclip" appStopProp title="{{'attachments' | i18n}}"></i>
|
2018-11-14 21:20:17 +01:00
|
|
|
<i class="fa fa-exclamation-triangle text-warning" appStopProp *ngIf="showFixOldAttachments(c)"
|
|
|
|
title="{{'attachmentsNeedFix' | i18n}}"></i>
|
|
|
|
</ng-container>
|
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>
|
2019-02-21 22:50:37 +01: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">
|
2019-02-21 22:50:37 +01: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>
|
2019-04-26 15:07:57 +02:00
|
|
|
<a class="dropdown-item" href="#" appStopClick
|
|
|
|
*ngIf="c.type === cipherType.Login && c.login.canLaunch" (click)="launch(c.login)">
|
|
|
|
<i class="fa fa-fw fa-share"></i>
|
|
|
|
{{'launch' | 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>
|
2019-02-21 22:50:37 +01: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>
|
2019-02-21 22:50:37 +01: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>
|
2019-02-21 22:50:37 +01:00
|
|
|
<a class="dropdown-item" href="#" appStopClick *ngIf="c.organizationId && accessEvents"
|
|
|
|
(click)="events(c)">
|
2018-07-11 21:22:55 +02:00
|
|
|
<i class="fa fa-fw fa-file-text-o"></i>
|
|
|
|
{{'eventLogs' | 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>
|
2019-03-19 17:44:22 +01:00
|
|
|
<div class="no-items" *ngIf="!filteredCiphers.length">
|
2018-07-18 05:15:15 +02:00
|
|
|
<i class="fa fa-spinner fa-spin text-muted" *ngIf="!loaded" title="{{'loading' | i18n}}"></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>
|
2019-04-26 15:07:57 +02:00
|
|
|
</ng-container>
|