2021-12-17 15:57:11 +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()"
|
|
|
|
>
|
|
|
|
<tbody>
|
|
|
|
<tr *ngFor="let c of filteredCiphers">
|
|
|
|
<td (click)="checkCipher(c)" class="table-list-checkbox">
|
|
|
|
<input type="checkbox" [(ngModel)]="c.checked" appStopProp />
|
|
|
|
</td>
|
|
|
|
<td (click)="checkCipher(c)" class="table-list-icon">
|
|
|
|
<app-vault-icon [cipher]="c"></app-vault-icon>
|
|
|
|
</td>
|
|
|
|
<td (click)="checkCipher(c)" class="reduced-lh wrap">
|
|
|
|
<a
|
|
|
|
appStopProp
|
2022-04-25 15:41:44 +02:00
|
|
|
[routerLink]="[]"
|
|
|
|
[queryParams]="{ cipherId: c.id }"
|
|
|
|
queryParamsHandling="merge"
|
2021-12-17 15:57:11 +01:00
|
|
|
title="{{ 'editItem' | i18n }}"
|
|
|
|
>{{ c.name }}</a
|
|
|
|
>
|
|
|
|
<ng-container *ngIf="c.hasAttachments">
|
|
|
|
<i
|
2022-01-27 18:25:58 +01:00
|
|
|
class="bwi bwi-paperclip"
|
2021-12-17 15:57:11 +01:00
|
|
|
appStopProp
|
|
|
|
title="{{ 'attachments' | i18n }}"
|
|
|
|
aria-hidden="true"
|
|
|
|
></i>
|
|
|
|
<span class="sr-only">{{ "attachments" | i18n }}</span>
|
|
|
|
<ng-container *ngIf="showFixOldAttachments(c)">
|
|
|
|
<i
|
2022-01-27 18:25:58 +01:00
|
|
|
class="bwi bwi-exclamation-triangle text-warning"
|
2021-12-17 15:57:11 +01:00
|
|
|
appStopProp
|
|
|
|
title="{{ 'attachmentsNeedFix' | i18n }}"
|
|
|
|
aria-hidden="true"
|
|
|
|
></i>
|
|
|
|
<span class="sr-only">{{ "attachmentsNeedFix" | i18n }}</span>
|
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
|
|
|
<br />
|
|
|
|
<small appStopProp>{{ c.subTitle }}</small>
|
|
|
|
</td>
|
2022-05-09 14:21:52 +02:00
|
|
|
<td *ngIf="organizations.length > 0 && !organization" class="tw-w-28">
|
|
|
|
<app-org-badge
|
|
|
|
organizationName="{{ c.organizationId | orgNameFromId: organizations }}"
|
2022-05-10 13:15:29 +02:00
|
|
|
profileName="{{ profileName }}"
|
2022-05-09 14:21:52 +02:00
|
|
|
(onOrganizationClicked)="onOrganizationClicked(c.organizationId)"
|
2022-05-10 23:11:59 +02:00
|
|
|
>
|
|
|
|
</app-org-badge>
|
2022-05-09 14:21:52 +02:00
|
|
|
</td>
|
2021-12-17 15:57:11 +01:00
|
|
|
<td class="table-list-options">
|
2022-05-09 14:21:52 +02:00
|
|
|
<button
|
|
|
|
[bitMenuTriggerFor]="cipherOptions"
|
|
|
|
class="tw-border-none tw-bg-transparent tw-text-main"
|
|
|
|
type="button"
|
|
|
|
appA11yTitle="{{ 'options' | i18n }}"
|
|
|
|
>
|
|
|
|
<i class="bwi bwi-ellipsis-v bwi-lg" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
<bit-menu #cipherOptions>
|
|
|
|
<ng-container *ngIf="c.type === cipherType.Login && !c.isDeleted">
|
2022-06-02 11:34:27 +02:00
|
|
|
<button bitMenuItem (click)="copy(c, c.login.username, 'username', 'Username')">
|
2022-05-09 14:21:52 +02:00
|
|
|
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
|
|
|
{{ "copyUsername" | i18n }}
|
|
|
|
</button>
|
|
|
|
<button
|
2022-06-02 11:34:27 +02:00
|
|
|
bitMenuItem
|
2022-05-09 14:21:52 +02:00
|
|
|
(click)="copy(c, c.login.password, 'password', 'Password')"
|
|
|
|
*ngIf="c.viewPassword"
|
|
|
|
>
|
|
|
|
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
|
|
|
{{ "copyPassword" | i18n }}
|
|
|
|
</button>
|
|
|
|
<button
|
2022-06-02 11:34:27 +02:00
|
|
|
bitMenuItem
|
2022-05-09 14:21:52 +02:00
|
|
|
(click)="copy(c, c.login.totp, 'verificationCodeTotp', 'TOTP')"
|
|
|
|
*ngIf="displayTotpCopyButton(c)"
|
|
|
|
>
|
|
|
|
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
|
|
|
{{ "copyVerificationCode" | i18n }}
|
|
|
|
</button>
|
2022-06-02 11:34:27 +02:00
|
|
|
<button bitMenuItem *ngIf="c.login.canLaunch" (click)="launch(c.login.launchUri)">
|
2022-05-09 14:21:52 +02:00
|
|
|
<i class="bwi bwi-fw bwi-share-square" aria-hidden="true"></i>
|
|
|
|
{{ "launch" | i18n }}
|
|
|
|
</button>
|
|
|
|
</ng-container>
|
2022-06-02 11:34:27 +02:00
|
|
|
<button bitMenuItem (click)="attachments(c)">
|
2022-05-09 14:21:52 +02:00
|
|
|
<i class="bwi bwi-fw bwi-paperclip" aria-hidden="true"></i>
|
|
|
|
{{ "attachments" | i18n }}
|
|
|
|
</button>
|
2021-12-17 15:57:11 +01:00
|
|
|
<button
|
2022-06-02 11:34:27 +02:00
|
|
|
bitMenuItem
|
2022-05-09 14:21:52 +02:00
|
|
|
*ngIf="((!organization && !c.organizationId) || organization) && !c.isDeleted"
|
|
|
|
(click)="clone(c)"
|
2021-12-17 15:57:11 +01:00
|
|
|
>
|
2022-05-09 14:21:52 +02:00
|
|
|
<i class="bwi bwi-fw bwi-files" aria-hidden="true"></i>
|
|
|
|
{{ "clone" | i18n }}
|
2021-12-17 15:57:11 +01:00
|
|
|
</button>
|
2022-05-09 14:21:52 +02:00
|
|
|
<button
|
2022-06-02 11:34:27 +02:00
|
|
|
bitMenuItem
|
2022-05-09 14:21:52 +02:00
|
|
|
*ngIf="!organization && !c.organizationId && !c.isDeleted"
|
|
|
|
(click)="share(c)"
|
|
|
|
>
|
|
|
|
<i class="bwi bwi-fw bwi-arrow-circle-right" aria-hidden="true"></i>
|
|
|
|
{{ "moveToOrganization" | i18n }}
|
|
|
|
</button>
|
2022-06-02 11:34:27 +02:00
|
|
|
<button bitMenuItem *ngIf="c.organizationId && !c.isDeleted" (click)="collections(c)">
|
2022-05-09 14:21:52 +02:00
|
|
|
<i class="bwi bwi-fw bwi-collection" aria-hidden="true"></i>
|
|
|
|
{{ "collections" | i18n }}
|
|
|
|
</button>
|
2022-06-02 11:34:27 +02:00
|
|
|
<button bitMenuItem *ngIf="c.organizationId && accessEvents" (click)="events(c)">
|
2022-05-09 14:21:52 +02:00
|
|
|
<i class="bwi bwi-fw bwi-file-text" aria-hidden="true"></i>
|
|
|
|
{{ "eventLogs" | i18n }}
|
|
|
|
</button>
|
2022-06-02 11:34:27 +02:00
|
|
|
<button bitMenuItem (click)="restore(c)" *ngIf="c.isDeleted">
|
2022-05-09 14:21:52 +02:00
|
|
|
<i class="bwi bwi-fw bwi-undo" aria-hidden="true"></i>
|
|
|
|
{{ "restore" | i18n }}
|
|
|
|
</button>
|
2022-06-02 11:34:27 +02:00
|
|
|
<button bitMenuItem (click)="delete(c)">
|
2022-05-09 14:21:52 +02:00
|
|
|
<span class="tw-text-danger">
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-fw bwi-trash" aria-hidden="true"></i>
|
2021-12-17 15:57:11 +01:00
|
|
|
{{ (c.isDeleted ? "permanentlyDelete" : "delete") | i18n }}
|
2022-05-09 14:21:52 +02:00
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</bit-menu>
|
2021-12-17 15:57:11 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<div class="no-items" *ngIf="!filteredCiphers.length">
|
|
|
|
<ng-container *ngIf="!loaded">
|
|
|
|
<i
|
2022-01-27 18:25:58 +01:00
|
|
|
class="bwi bwi-spinner bwi-spin text-muted"
|
2021-12-17 15:57:11 +01:00
|
|
|
title="{{ 'loading' | i18n }}"
|
|
|
|
aria-hidden="true"
|
|
|
|
></i>
|
|
|
|
<span class="sr-only">{{ "loading" | i18n }}</span>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="loaded">
|
|
|
|
<p>{{ "noItemsInList" | i18n }}</p>
|
2022-02-04 20:49:44 +01:00
|
|
|
<button (click)="addCipher()" class="btn btn-outline-primary" *ngIf="showAddNew">
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-plus bwi-fw"></i>{{ "addItem" | i18n }}
|
2021-12-17 15:57:11 +01:00
|
|
|
</button>
|
|
|
|
</ng-container>
|
|
|
|
</div>
|
2020-04-08 22:48:30 +02:00
|
|
|
</ng-container>
|