2021-10-01 15:55:53 +02:00
|
|
|
<header>
|
|
|
|
<div class="left">
|
|
|
|
<button type="button" appBlurClick (click)="close()">{{ "close" | i18n }}</button>
|
|
|
|
</div>
|
2021-11-02 23:28:53 +01:00
|
|
|
<h1 class="center">
|
2021-10-01 15:55:53 +02:00
|
|
|
<span class="title">{{ "viewItem" | i18n }}</span>
|
2021-11-02 23:28:53 +01:00
|
|
|
</h1>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="right" *ngIf="cipher">
|
|
|
|
<button type="button" appBlurClick (click)="edit()" *ngIf="!cipher.isDeleted">
|
|
|
|
{{ "edit" | i18n }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<content *ngIf="cipher">
|
|
|
|
<div class="box">
|
2021-11-02 23:28:53 +01:00
|
|
|
<h2 class="box-header">
|
2021-10-01 15:55:53 +02:00
|
|
|
{{ "itemInformation" | i18n }}
|
|
|
|
</h2>
|
|
|
|
<div class="box-content">
|
|
|
|
<div class="box-content-row">
|
|
|
|
<label for="name">{{ "name" | i18n }}</label>
|
2021-12-16 02:26:00 +01:00
|
|
|
<input id="name" type="text" [value]="cipher.name" readonly aria-readonly="true" />
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-12-18 21:22:11 +01:00
|
|
|
<!-- Login -->
|
2021-10-01 15:55:53 +02:00
|
|
|
<div *ngIf="cipher.login">
|
|
|
|
<div class="box-content-row box-content-row-flex" *ngIf="cipher.login.username">
|
|
|
|
<div class="row-main">
|
|
|
|
<label
|
|
|
|
for="loginUsername"
|
|
|
|
class="row-label draggable"
|
|
|
|
draggable="true"
|
|
|
|
(dragstart)="setTextDataOnDrag($event, cipher.login.username)"
|
|
|
|
>{{ "username" | i18n }}
|
|
|
|
</label>
|
|
|
|
<input
|
|
|
|
id="loginUsername"
|
|
|
|
type="text"
|
|
|
|
[value]="cipher.login.username"
|
|
|
|
readonly
|
|
|
|
aria-readonly="true"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div class="action-buttons">
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
|
|
|
appA11yTitle="{{ 'copyUsername' | i18n }}"
|
|
|
|
(click)="copy(cipher.login.username, 'username', 'Username')"
|
|
|
|
>
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
|
2021-10-01 15:55:53 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box-content-row box-content-row-flex" *ngIf="cipher.login.password">
|
|
|
|
<div class="row-main">
|
2021-12-16 02:26:00 +01:00
|
|
|
<span
|
|
|
|
class="row-label draggable"
|
|
|
|
draggable="true"
|
|
|
|
(dragstart)="setTextDataOnDrag($event, cipher.login.password)"
|
|
|
|
>{{ "password" | i18n }}</span
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2021-12-16 02:26:00 +01:00
|
|
|
<div [hidden]="showPassword" class="monospaced">
|
2021-10-01 15:55:53 +02:00
|
|
|
{{ cipher.login.maskedPassword }}
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
[hidden]="!showPassword"
|
|
|
|
class="monospaced password-wrapper"
|
|
|
|
appSelectCopy
|
|
|
|
[innerHTML]="cipher.login.password | colorPassword"
|
|
|
|
></div>
|
|
|
|
</div>
|
|
|
|
<div class="action-buttons">
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
#checkPasswordBtn
|
|
|
|
class="row-btn btn"
|
|
|
|
appBlurClick
|
|
|
|
appA11yTitle="{{ 'checkPassword' | i18n }}"
|
|
|
|
(click)="checkPassword()"
|
|
|
|
[appApiAction]="checkPasswordPromise"
|
|
|
|
[disabled]="checkPasswordBtn.loading"
|
|
|
|
*ngIf="cipher.viewPassword"
|
|
|
|
>
|
|
|
|
<i
|
2022-01-28 11:53:06 +01:00
|
|
|
class="bwi bwi-lg bwi-check-circle"
|
2021-10-01 15:55:53 +02:00
|
|
|
[hidden]="checkPasswordBtn.loading"
|
|
|
|
aria-hidden="true"
|
|
|
|
></i>
|
|
|
|
<i
|
2022-01-28 11:53:06 +01:00
|
|
|
class="bwi bwi-lg bwi-spinner bwi-spin"
|
2021-10-01 15:55:53 +02:00
|
|
|
[hidden]="!checkPasswordBtn.loading"
|
|
|
|
aria-hidden="true"
|
|
|
|
></i>
|
|
|
|
</button>
|
2021-10-05 00:41:21 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
2021-12-16 02:26:00 +01:00
|
|
|
attr.aria-label="{{ 'toggleVisibility' | i18n }} {{ 'password' | i18n }}"
|
2021-10-05 00:41:21 +02:00
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
|
|
|
(click)="togglePassword()"
|
2021-10-01 15:55:53 +02:00
|
|
|
*ngIf="cipher.viewPassword"
|
|
|
|
[attr.aria-pressed]="showPassword"
|
|
|
|
>
|
|
|
|
<i
|
2022-01-28 11:53:06 +01:00
|
|
|
class="bwi bwi-lg"
|
2021-10-01 15:55:53 +02:00
|
|
|
aria-hidden="true"
|
2022-01-28 11:53:06 +01:00
|
|
|
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
|
2021-10-01 15:55:53 +02:00
|
|
|
></i>
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
|
|
|
appA11yTitle="{{ 'copyPassword' | i18n }}"
|
|
|
|
(click)="copy(cipher.login.password, 'password', 'Password')"
|
|
|
|
*ngIf="cipher.viewPassword"
|
|
|
|
>
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
|
2021-10-01 15:55:53 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2021-10-01 15:55:53 +02:00
|
|
|
class="box-content-row box-content-row-flex totp"
|
|
|
|
[ngClass]="{ low: totpLow }"
|
|
|
|
*ngIf="cipher.login.totp && totpCode"
|
|
|
|
>
|
|
|
|
<div class="row-main">
|
|
|
|
<span
|
|
|
|
class="row-label draggable"
|
|
|
|
draggable="true"
|
|
|
|
(dragstart)="setTextDataOnDrag($event, totpCode)"
|
|
|
|
>{{ "verificationCodeTotp" | i18n }}</span
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2021-10-01 15:55:53 +02:00
|
|
|
<span class="totp-code">{{ totpCodeFormatted }}</span>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<span class="totp-countdown">
|
|
|
|
<span class="totp-sec">{{ totpSec }}</span>
|
2021-12-21 15:43:35 +01:00
|
|
|
<svg>
|
|
|
|
<g>
|
|
|
|
<circle
|
2021-10-01 15:55:53 +02:00
|
|
|
class="totp-circle inner"
|
2021-12-21 15:43:35 +01:00
|
|
|
r="12.6"
|
|
|
|
cy="16"
|
|
|
|
cx="16"
|
2021-10-01 15:55:53 +02:00
|
|
|
[ngStyle]="{ 'stroke-dashoffset.px': totpDash }"
|
|
|
|
></circle>
|
|
|
|
<circle class="totp-circle outer" r="14" cy="16" cx="16"></circle>
|
2021-12-21 15:43:35 +01:00
|
|
|
</g>
|
|
|
|
</svg>
|
|
|
|
</span>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="action-buttons">
|
2021-12-21 15:43:35 +01:00
|
|
|
<button
|
2021-10-01 15:55:53 +02:00
|
|
|
type="button"
|
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
|
|
|
appA11yTitle="{{ 'copyVerificationCode' | i18n }}"
|
|
|
|
(click)="copy(totpCode, 'verificationCodeTotp', 'TOTP')"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
|
2021-10-01 15:55:53 +02:00
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<!-- Card -->
|
|
|
|
<div *ngIf="cipher.card">
|
|
|
|
<div class="box-content-row" *ngIf="cipher.card.cardholderName">
|
|
|
|
<span class="row-label">{{ "cardholderName" | i18n }}</span>
|
|
|
|
{{ cipher.card.cardholderName }}
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box-content-row box-content-row-flex" *ngIf="cipher.card.number">
|
|
|
|
<div class="row-main">
|
|
|
|
<span class="row-label">{{ "number" | i18n }}</span>
|
|
|
|
<span [hidden]="showCardNumber" class="monospaced">{{ cipher.card.maskedNumber }}</span>
|
|
|
|
<span [hidden]="!showCardNumber" class="monospaced">{{ cipher.card.number }}</span>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="action-buttons">
|
2021-12-21 15:43:35 +01:00
|
|
|
<button
|
2021-10-01 15:55:53 +02:00
|
|
|
type="button"
|
2021-12-16 02:26:00 +01:00
|
|
|
class="row-btn"
|
2021-10-01 15:55:53 +02:00
|
|
|
appStopClick
|
2021-12-16 02:26:00 +01:00
|
|
|
attr.aria-label="{{ 'toggleVisibility' | i18n }} {{ 'number' | i18n }}"
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
2021-12-18 21:22:11 +01:00
|
|
|
(click)="toggleCardNumber()"
|
2021-10-01 15:55:53 +02:00
|
|
|
[attr.aria-pressed]="showCardNumber"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
|
|
|
<i
|
2022-01-28 11:53:06 +01:00
|
|
|
class="bwi bwi-lg"
|
2021-10-01 15:55:53 +02:00
|
|
|
aria-hidden="true"
|
2022-01-28 11:53:06 +01:00
|
|
|
[ngClass]="{ 'bwi-eye': !showCardNumber, 'bwi-eye-slash': showCardNumber }"
|
2021-12-21 15:43:35 +01:00
|
|
|
></i>
|
2021-10-01 15:55:53 +02:00
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
<button
|
2021-12-16 02:26:00 +01:00
|
|
|
type="button"
|
2021-10-01 15:55:53 +02:00
|
|
|
class="row-btn"
|
2021-12-16 02:26:00 +01:00
|
|
|
appStopClick
|
2021-10-01 15:55:53 +02:00
|
|
|
appA11yTitle="{{ 'copyNumber' | i18n }}"
|
|
|
|
(click)="copy(cipher.card.number, 'number', 'Card Number')"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
|
2021-10-01 15:55:53 +02:00
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box-content-row" *ngIf="cipher.card.brand">
|
|
|
|
<span class="row-label">{{ "brand" | i18n }}</span>
|
|
|
|
{{ cipher.card.brand }}
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box-content-row" *ngIf="cipher.card.expiration">
|
|
|
|
<span class="row-label">{{ "expiration" | i18n }}</span>
|
|
|
|
{{ cipher.card.expiration }}
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box-content-row box-content-row-flex" *ngIf="cipher.card.code">
|
|
|
|
<div class="row-main">
|
|
|
|
<span class="row-label">{{ "securityCode" | i18n }}</span>
|
|
|
|
<span [hidden]="showCardCode" class="monospaced">{{ cipher.card.maskedCode }}</span>
|
|
|
|
<span [hidden]="!showCardCode" class="monospaced">{{ cipher.card.code }}</span>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="action-buttons">
|
2021-12-21 15:43:35 +01:00
|
|
|
<button
|
2021-10-01 15:55:53 +02:00
|
|
|
type="button"
|
2021-12-16 02:26:00 +01:00
|
|
|
class="row-btn"
|
2021-10-01 15:55:53 +02:00
|
|
|
appStopClick
|
2021-12-16 02:26:00 +01:00
|
|
|
attr.aria-label="{{ 'toggleVisibility' | i18n }} {{ 'securityCode' | i18n }}"
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
2021-12-18 21:22:11 +01:00
|
|
|
(click)="toggleCardCode()"
|
2021-10-01 15:55:53 +02:00
|
|
|
[attr.aria-pressed]="showCardCode"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
|
|
|
<i
|
2022-01-28 11:53:06 +01:00
|
|
|
class="bwi bwi-lg"
|
2021-10-01 15:55:53 +02:00
|
|
|
aria-hidden="true"
|
2022-01-28 11:53:06 +01:00
|
|
|
[ngClass]="{ 'bwi-eye': !showCardCode, 'bwi-eye-slash': showCardCode }"
|
2021-10-01 15:55:53 +02:00
|
|
|
></i>
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
|
|
|
appA11yTitle="{{ 'copySecurityCode' | i18n }}"
|
|
|
|
(click)="copy(cipher.card.code, 'securityCode', 'Security Code')"
|
|
|
|
>
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
|
2021-10-01 15:55:53 +02:00
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
</div>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<!-- Identity -->
|
|
|
|
<div *ngIf="cipher.identity">
|
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.fullName">
|
|
|
|
<span class="row-label">{{ "identityName" | i18n }}</span>
|
|
|
|
{{ cipher.identity.fullName }}
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.username">
|
|
|
|
<span class="row-label">{{ "username" | i18n }}</span>
|
|
|
|
{{ cipher.identity.username }}
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.company">
|
|
|
|
<span class="row-label">{{ "company" | i18n }}</span>
|
|
|
|
{{ cipher.identity.company }}
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.ssn">
|
|
|
|
<span class="row-label">{{ "ssn" | i18n }}</span>
|
|
|
|
{{ cipher.identity.ssn }}
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.passportNumber">
|
|
|
|
<span class="row-label">{{ "passportNumber" | i18n }}</span>
|
|
|
|
{{ cipher.identity.passportNumber }}
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.licenseNumber">
|
|
|
|
<span class="row-label">{{ "licenseNumber" | i18n }}</span>
|
|
|
|
{{ cipher.identity.licenseNumber }}
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.email">
|
|
|
|
<span class="row-label">{{ "email" | i18n }}</span>
|
|
|
|
{{ cipher.identity.email }}
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.phone">
|
|
|
|
<span class="row-label">{{ "phone" | i18n }}</span>
|
|
|
|
{{ cipher.identity.phone }}
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2021-10-01 15:55:53 +02:00
|
|
|
class="box-content-row"
|
|
|
|
*ngIf="cipher.identity.address1 || cipher.identity.city || cipher.identity.country"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2021-10-01 15:55:53 +02:00
|
|
|
<span class="row-label">{{ "address" | i18n }}</span>
|
|
|
|
<div *ngIf="cipher.identity.address1">{{ cipher.identity.address1 }}</div>
|
|
|
|
<div *ngIf="cipher.identity.address2">{{ cipher.identity.address2 }}</div>
|
|
|
|
<div *ngIf="cipher.identity.address3">{{ cipher.identity.address3 }}</div>
|
|
|
|
<div *ngIf="cipher.identity.fullAddressPart2">{{ cipher.identity.fullAddressPart2 }}</div>
|
|
|
|
<div *ngIf="cipher.identity.country">{{ cipher.identity.country }}</div>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box" *ngIf="cipher.login && cipher.login.hasUris">
|
|
|
|
<div class="box-content">
|
2021-12-21 15:43:35 +01:00
|
|
|
<div
|
2021-10-01 15:55:53 +02:00
|
|
|
class="box-content-row box-content-row-flex"
|
|
|
|
*ngFor="let u of cipher.login.uris; let i = index"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="row-main">
|
|
|
|
<label for="hostOrUri{{ i }}" class="row-label" *ngIf="!u.isWebsite">{{
|
|
|
|
"uri" | i18n
|
|
|
|
}}</label>
|
|
|
|
<label for="hostOrUri{{ i }}" class="row-label" *ngIf="u.isWebsite">{{
|
|
|
|
"website" | i18n
|
2021-12-16 02:26:00 +01:00
|
|
|
}}</label>
|
2021-10-01 15:55:53 +02:00
|
|
|
<span title="{{ u.uri }}">
|
2021-12-21 15:43:35 +01:00
|
|
|
<input
|
2021-10-01 15:55:53 +02:00
|
|
|
id="hostOrUri{{ i }}"
|
2021-12-16 02:26:00 +01:00
|
|
|
type="text"
|
2021-10-01 15:55:53 +02:00
|
|
|
[value]="u.hostOrUri"
|
2021-12-21 15:43:35 +01:00
|
|
|
readonly
|
2021-12-16 02:26:00 +01:00
|
|
|
aria-readonly="true"
|
2021-10-01 15:55:53 +02:00
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="action-buttons">
|
2021-12-21 15:43:35 +01:00
|
|
|
<button
|
2021-12-16 02:26:00 +01:00
|
|
|
type="button"
|
|
|
|
class="row-btn"
|
2021-10-01 15:55:53 +02:00
|
|
|
appStopClick
|
2021-12-16 02:26:00 +01:00
|
|
|
attr.aria-label="{{ 'launch' | i18n }} {{ u.uri }}"
|
|
|
|
appA11yTitle="{{ 'launch' | i18n }}"
|
|
|
|
*ngIf="u.canLaunch"
|
2021-10-01 15:55:53 +02:00
|
|
|
(click)="launch(u)"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-lg bwi-share-square" aria-hidden="true"></i>
|
2021-10-01 15:55:53 +02:00
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
<button
|
2021-12-16 02:26:00 +01:00
|
|
|
type="button"
|
|
|
|
class="row-btn"
|
2021-10-01 15:55:53 +02:00
|
|
|
appStopClick
|
2021-12-16 02:26:00 +01:00
|
|
|
attr.aria-label="{{ 'copyUri' | i18n }} {{ u.uri }}"
|
|
|
|
appA11yTitle="{{ 'copyUri' | i18n }}"
|
2021-10-01 15:55:53 +02:00
|
|
|
(click)="copy(u.uri, u.isWebsite ? 'website' : 'uri', 'URI')"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
|
2021-10-01 15:55:53 +02:00
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box" *ngIf="cipher.notes">
|
2021-11-02 23:28:53 +01:00
|
|
|
<h2 class="box-header">
|
2021-12-16 02:26:00 +01:00
|
|
|
<label for="notes">{{ "notes" | i18n }}</label>
|
2021-12-21 15:43:35 +01:00
|
|
|
</h2>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box-content">
|
|
|
|
<div class="box-content-row">
|
2021-12-21 15:43:35 +01:00
|
|
|
<textarea
|
|
|
|
id="notes"
|
2021-12-16 02:26:00 +01:00
|
|
|
[value]="cipher.notes"
|
2021-12-21 15:43:35 +01:00
|
|
|
rows="6"
|
|
|
|
readonly
|
2021-12-16 02:26:00 +01:00
|
|
|
aria-readonly="true"
|
2021-12-21 15:43:35 +01:00
|
|
|
></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box" *ngIf="cipher.hasFields">
|
|
|
|
<app-vault-view-custom-fields
|
|
|
|
[cipher]="cipher"
|
|
|
|
[promptPassword]="promptPassword.bind(this)"
|
|
|
|
[copy]="copy.bind(this)"
|
|
|
|
></app-vault-view-custom-fields>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2021-10-01 15:55:53 +02:00
|
|
|
class="box"
|
|
|
|
*ngIf="cipher.hasAttachments && (canAccessPremium || cipher.organizationId) && showAttachments"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2021-11-02 23:28:53 +01:00
|
|
|
<h2 class="box-header">
|
2021-10-01 15:55:53 +02:00
|
|
|
{{ "attachments" | i18n }}
|
2021-12-21 15:43:35 +01:00
|
|
|
</h2>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box-content">
|
2021-12-21 15:43:35 +01:00
|
|
|
<button
|
2021-12-16 02:26:00 +01:00
|
|
|
type="button"
|
2021-10-01 15:55:53 +02:00
|
|
|
class="box-content-row box-content-row-flex text-default"
|
|
|
|
*ngFor="let attachment of cipher.attachments"
|
|
|
|
appStopClick
|
|
|
|
appBlurCLick
|
|
|
|
(click)="downloadAttachment(attachment)"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2021-10-01 15:55:53 +02:00
|
|
|
<span class="row-main">{{ attachment.fileName }}</span>
|
|
|
|
<small class="row-sub-label">{{ attachment.sizeName }}</small>
|
2021-12-21 15:43:35 +01:00
|
|
|
<i
|
2022-01-28 11:53:06 +01:00
|
|
|
class="bwi bwi-download bwi-fw row-sub-icon"
|
2021-10-01 15:55:53 +02:00
|
|
|
*ngIf="!attachment.downloading"
|
|
|
|
aria-hidden="true"
|
2021-12-21 15:43:35 +01:00
|
|
|
></i>
|
|
|
|
<i
|
2022-01-28 11:53:06 +01:00
|
|
|
class="bwi bwi-spinner bwi-fw bwi-spin row-sub-icon"
|
2021-10-01 15:55:53 +02:00
|
|
|
*ngIf="attachment.downloading"
|
|
|
|
aria-hidden="true"
|
2021-12-21 15:43:35 +01:00
|
|
|
></i>
|
2021-10-01 15:55:53 +02:00
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box list">
|
|
|
|
<div class="box-content single-line">
|
2021-12-21 15:43:35 +01:00
|
|
|
<button
|
2021-12-16 02:26:00 +01:00
|
|
|
type="button"
|
2021-10-01 15:55:53 +02:00
|
|
|
class="box-content-row"
|
|
|
|
appStopClick
|
|
|
|
appBlurClick
|
2021-12-18 21:22:11 +01:00
|
|
|
(click)="fillCipher()"
|
2021-10-01 15:55:53 +02:00
|
|
|
*ngIf="cipher.type !== cipherType.SecureNote && !cipher.isDeleted && !inPopout"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="row-main text-primary">
|
|
|
|
<div class="icon text-primary" aria-hidden="true">
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-pencil-square bwi-lg bwi-fw"></i>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<span>{{ "autoFill" | i18n }}</span>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
<button
|
2021-12-16 02:26:00 +01:00
|
|
|
type="button"
|
2021-10-01 15:55:53 +02:00
|
|
|
class="box-content-row"
|
|
|
|
appStopClick
|
|
|
|
appBlurClick
|
|
|
|
(click)="fillCipherAndSave()"
|
|
|
|
*ngIf="cipher.type === cipherType.Login && !cipher.isDeleted && !inPopout"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="row-main text-primary">
|
|
|
|
<div class="icon text-primary" aria-hidden="true">
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-bookmark bwi-lg bwi-fw"></i>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<span>{{ "autoFillAndSave" | i18n }}</span>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
<button
|
2021-12-16 02:26:00 +01:00
|
|
|
type="button"
|
2021-10-01 15:55:53 +02:00
|
|
|
class="box-content-row"
|
|
|
|
appStopClick
|
|
|
|
appBlurClick
|
|
|
|
(click)="clone()"
|
|
|
|
*ngIf="!cipher.organizationId && !cipher.isDeleted"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="row-main text-primary">
|
|
|
|
<div class="icon text-primary" aria-hidden="true">
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-files bwi-lg bwi-fw"></i>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<span>{{ "cloneItem" | i18n }}</span>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
<button
|
2021-12-16 02:26:00 +01:00
|
|
|
type="button"
|
2021-10-01 15:55:53 +02:00
|
|
|
class="box-content-row"
|
|
|
|
appStopClick
|
|
|
|
appBlurClick
|
2021-12-18 21:22:11 +01:00
|
|
|
(click)="share()"
|
2021-10-01 15:55:53 +02:00
|
|
|
*ngIf="!cipher.organizationId"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="row-main text-primary">
|
|
|
|
<div class="icon text-primary" aria-hidden="true">
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-arrow-circle-right bwi-lg bwi-fw"></i>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<span>{{ "moveToOrganization" | i18n }}</span>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
<button
|
2021-12-16 02:26:00 +01:00
|
|
|
type="button"
|
2021-10-01 15:55:53 +02:00
|
|
|
class="box-content-row"
|
|
|
|
appStopClick
|
|
|
|
appBlurClick
|
|
|
|
(click)="restore()"
|
|
|
|
*ngIf="cipher.isDeleted"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="row-main text-primary">
|
|
|
|
<div class="icon text-primary" aria-hidden="true">
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-undo bwi-lg bwi-fw"></i>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<span>{{ "restoreItem" | i18n }}</span>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
</button>
|
|
|
|
<button type="button" class="box-content-row" appStopClick appBlurClick (click)="delete()">
|
|
|
|
<div class="row-main text-danger">
|
|
|
|
<div class="icon text-danger" aria-hidden="true">
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-trash bwi-lg bwi-fw"></i>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<span>{{ (cipher.isDeleted ? "permanentlyDeleteItem" : "deleteItem") | i18n }}</span>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-footer">
|
2021-12-21 15:43:35 +01:00
|
|
|
<div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<b class="font-weight-semibold">{{ "dateUpdated" | i18n }}:</b>
|
|
|
|
{{ cipher.revisionDate | date: "medium" }}
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div *ngIf="cipher.passwordRevisionDisplayDate">
|
|
|
|
<b class="font-weight-semibold">{{ "datePasswordUpdated" | i18n }}:</b>
|
|
|
|
{{ cipher.passwordRevisionDisplayDate | date: "medium" }}
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
<div *ngIf="cipher.hasPasswordHistory">
|
|
|
|
<b class="font-weight-semibold">{{ "passwordHistory" | i18n }}:</b>
|
2021-12-21 15:43:35 +01:00
|
|
|
<a
|
2021-10-01 15:55:53 +02:00
|
|
|
routerLink="/cipher-password-history"
|
|
|
|
[queryParams]="{ cipherId: cipher.id }"
|
|
|
|
appStopClick
|
|
|
|
title="{{ 'passwordHistory' | i18n }}"
|
2021-12-21 15:43:35 +01:00
|
|
|
>
|
2021-10-01 15:55:53 +02:00
|
|
|
{{ cipher.passwordHistory.length }}
|
2021-12-21 15:43:35 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
</div>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-10-01 15:55:53 +02:00
|
|
|
</content>
|