1
0
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:
Nick Krantz
2025-08-19 13:13:48 -05:00
parent 4257bb1691
commit fd880aa09f
4 changed files with 7 additions and 7 deletions

View File

@@ -20,7 +20,7 @@
>
<bit-item slot="attachment-button">
<button
[disabled]="isAttachmentsButtonDisabled"
[disabled]="attachmentsButtonDisabled"
bit-item-content
type="button"
(click)="openAttachmentsDialog()"

View File

@@ -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";
}
/**

View File

@@ -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>

View File

@@ -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();
}
}