mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-05 05:17:40 +02:00
Hide autofill buttons for certain cipher types
This commit is contained in:
parent
3df4657faf
commit
ced6d57f93
@ -269,7 +269,7 @@
|
|||||||
<div class="box list">
|
<div class="box list">
|
||||||
<div class="box-content single-line">
|
<div class="box-content single-line">
|
||||||
<a class="box-content-row" href="#" appStopClick appBlurClick (click)="fillCipher()"
|
<a class="box-content-row" href="#" appStopClick appBlurClick (click)="fillCipher()"
|
||||||
*ngIf="!cipher.isDeleted && !inPopout">
|
*ngIf="cipher.type !== cipherType.SecureNote && !cipher.isDeleted && !inPopout">
|
||||||
<div class="row-main text-primary">
|
<div class="row-main text-primary">
|
||||||
<div class="icon text-primary" aria-hidden="true">
|
<div class="icon text-primary" aria-hidden="true">
|
||||||
<i class="fa fa-pencil-square-o fa-lg fa-fw"></i>
|
<i class="fa fa-pencil-square-o fa-lg fa-fw"></i>
|
||||||
@ -278,7 +278,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a class="box-content-row" href="#" appStopClick appBlurClick (click)="fillCipherAndSave()"
|
<a class="box-content-row" href="#" appStopClick appBlurClick (click)="fillCipherAndSave()"
|
||||||
*ngIf="!cipher.isDeleted && !inPopout">
|
*ngIf="cipher.type === cipherType.Login && !cipher.isDeleted && !inPopout">
|
||||||
<div class="row-main text-primary">
|
<div class="row-main text-primary">
|
||||||
<div class="icon text-primary" aria-hidden="true">
|
<div class="icon text-primary" aria-hidden="true">
|
||||||
<i class="fa fa-bookmark fa-lg fa-fw"></i>
|
<i class="fa fa-bookmark fa-lg fa-fw"></i>
|
||||||
|
@ -29,6 +29,8 @@ import { BrowserApi } from '../../browser/browserApi';
|
|||||||
import { AutofillService } from '../../services/abstractions/autofill.service';
|
import { AutofillService } from '../../services/abstractions/autofill.service';
|
||||||
import { PopupUtilsService } from '../services/popup-utils.service';
|
import { PopupUtilsService } from '../services/popup-utils.service';
|
||||||
|
|
||||||
|
import { CipherType } from 'jslib/enums';
|
||||||
|
|
||||||
const BroadcasterSubscriptionId = 'ChildViewComponent';
|
const BroadcasterSubscriptionId = 'ChildViewComponent';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -41,6 +43,7 @@ export class ViewComponent extends BaseViewComponent {
|
|||||||
tab: any;
|
tab: any;
|
||||||
loadPageDetailsTimeout: number;
|
loadPageDetailsTimeout: number;
|
||||||
inPopout = false;
|
inPopout = false;
|
||||||
|
cipherType = CipherType;
|
||||||
|
|
||||||
constructor(cipherService: CipherService, totpService: TotpService,
|
constructor(cipherService: CipherService, totpService: TotpService,
|
||||||
tokenService: TokenService, i18nService: I18nService,
|
tokenService: TokenService, i18nService: I18nService,
|
||||||
|
Loading…
Reference in New Issue
Block a user