mirror of
https://github.com/bitwarden/browser
synced 2026-02-05 11:13:44 +00:00
refactor variable to avoid using is prefix
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
>
|
||||
<bit-item slot="attachment-button">
|
||||
<button
|
||||
[disabled]="isAttachmentsButtonDisabled"
|
||||
[disabled]="attachmentsButtonDisabled"
|
||||
bit-item-content
|
||||
type="button"
|
||||
(click)="openAttachmentsDialog()"
|
||||
|
||||
@@ -273,7 +273,7 @@ export class VaultItemDialogComponent implements OnInit, OnDestroy {
|
||||
|
||||
protected canDelete = false;
|
||||
|
||||
protected isAttachmentsButtonDisabled = false;
|
||||
protected attachmentsButtonDisabled = false;
|
||||
|
||||
constructor(
|
||||
@Inject(DIALOG_DATA) protected params: VaultItemDialogParams,
|
||||
@@ -344,7 +344,7 @@ export class VaultItemDialogComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
formStatusChanged(status: "disabled" | "enabled") {
|
||||
this.isAttachmentsButtonDisabled = status === "disabled";
|
||||
this.attachmentsButtonDisabled = status === "disabled";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
[attr.aria-checked]="itemDetailsForm.value.favorite"
|
||||
[appA11yTitle]="'favorite' | i18n"
|
||||
(click)="toggleFavorite()"
|
||||
[disabled]="isFavoriteButtonDisabled"
|
||||
[disabled]="favoriteButtonDisabled"
|
||||
></button>
|
||||
</bit-section-header>
|
||||
<bit-card>
|
||||
|
||||
@@ -82,7 +82,7 @@ export class ItemDetailsSectionComponent implements OnInit {
|
||||
|
||||
protected userId: UserId;
|
||||
|
||||
protected isFavoriteButtonDisabled = false;
|
||||
protected favoriteButtonDisabled = false;
|
||||
|
||||
@Input({ required: true })
|
||||
config: CipherFormConfig;
|
||||
@@ -251,10 +251,10 @@ export class ItemDetailsSectionComponent implements OnInit {
|
||||
if (this.itemDetailsForm.controls.organizationId.value === null) {
|
||||
this.cipherFormContainer.disableFormFields();
|
||||
this.itemDetailsForm.controls.organizationId.enable();
|
||||
this.isFavoriteButtonDisabled = true;
|
||||
this.favoriteButtonDisabled = true;
|
||||
} else {
|
||||
this.cipherFormContainer.enableFormFields();
|
||||
this.isFavoriteButtonDisabled = false;
|
||||
this.favoriteButtonDisabled = false;
|
||||
this.setCollectionControlState();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user