88 lines
2.5 KiB
HTML
88 lines
2.5 KiB
HTML
<span
|
|
class="row-btn"
|
|
(click)="view()"
|
|
appStopClick
|
|
appStopProp
|
|
appA11yTitle="{{ 'view' | i18n }}"
|
|
*ngIf="showView"
|
|
>
|
|
<i class="fa fa-lg fa-list-alt" aria-hidden="true"></i>
|
|
</span>
|
|
<ng-container *ngIf="cipher.type === cipherType.Login">
|
|
<span
|
|
class="row-btn"
|
|
appStopClick
|
|
appStopProp
|
|
appA11yTitle="{{ 'launch' | i18n }}"
|
|
(click)="launchCipher()"
|
|
*ngIf="!showView"
|
|
[ngClass]="{ disabled: !cipher.login.canLaunch }"
|
|
>
|
|
<i class="fa fa-lg fa-share-square-o" aria-hidden="true"></i>
|
|
</span>
|
|
<span
|
|
class="row-btn"
|
|
appStopClick
|
|
appStopProp
|
|
appA11yTitle="{{ 'copyUsername' | i18n }}"
|
|
(click)="copy(cipher, cipher.login.username, 'username', 'Username')"
|
|
[ngClass]="{ disabled: !cipher.login.username }"
|
|
>
|
|
<i class="fa fa-lg fa-user" aria-hidden="true"></i>
|
|
</span>
|
|
<span
|
|
class="row-btn"
|
|
appStopClick
|
|
appStopProp
|
|
appA11yTitle="{{ 'copyPassword' | i18n }}"
|
|
(click)="copy(cipher, cipher.login.password, 'password', 'Password')"
|
|
[ngClass]="{ disabled: !cipher.login.password || !cipher.viewPassword }"
|
|
>
|
|
<i class="fa fa-lg fa-key" aria-hidden="true"></i>
|
|
</span>
|
|
<span
|
|
class="row-btn"
|
|
appStopClick
|
|
appStopProp
|
|
appA11yTitle="{{ 'copyVerificationCode' | i18n }}"
|
|
(click)="copy(cipher, cipher.login.totp, 'verificationCodeTotp', 'TOTP')"
|
|
[ngClass]="{ disabled: !displayTotpCopyButton(cipher) }"
|
|
>
|
|
<i class="fa fa-lg fa-clock-o" aria-hidden="true"></i>
|
|
</span>
|
|
</ng-container>
|
|
<ng-container *ngIf="cipher.type === cipherType.Card">
|
|
<span
|
|
class="row-btn"
|
|
appStopClick
|
|
appStopProp
|
|
appA11yTitle="{{ 'copyNumber' | i18n }}"
|
|
(click)="copy(cipher, cipher.card.number, 'number', 'Card Number')"
|
|
[ngClass]="{ disabled: !cipher.card.number }"
|
|
>
|
|
<i class="fa fa-lg fa-hashtag" aria-hidden="true"></i>
|
|
</span>
|
|
<span
|
|
class="row-btn"
|
|
appStopClick
|
|
appStopProp
|
|
appA11yTitle="{{ 'copySecurityCode' | i18n }}"
|
|
(click)="copy(cipher, cipher.card.code, 'securityCode', 'Security Code')"
|
|
[ngClass]="{ disabled: !cipher.card.code }"
|
|
>
|
|
<i class="fa fa-lg fa-key" aria-hidden="true"></i>
|
|
</span>
|
|
</ng-container>
|
|
<ng-container *ngIf="cipher.type === cipherType.SecureNote">
|
|
<span
|
|
class="row-btn"
|
|
appStopClick
|
|
appStopProp
|
|
appA11yTitle="{{ 'copyNote' | i18n }}"
|
|
(click)="copy(cipher, cipher.notes, 'note', 'Note')"
|
|
[ngClass]="{ disabled: !cipher.notes }"
|
|
>
|
|
<i class="fa fa-lg fa-clone" aria-hidden="true"></i>
|
|
</span>
|
|
</ng-container>
|