Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jaasen-livefront committed Oct 11, 2024
1 parent af28a5b commit a4646bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ <h2 class="tw-mt-4" bitTypography="h6">{{ "additionalOptions" | i18n }}</h2>
>
</bit-form-field>
<bit-form-field>
<bit-label *ngIf="!showNewPassword">{{ "password" | i18n }}</bit-label>
<bit-label *ngIf="showNewPassword">{{ "newPassword" | i18n }}</bit-label>
<bit-label *ngIf="!shouldShowNewPassword">{{ "password" | i18n }}</bit-label>
<bit-label *ngIf="shouldShowNewPassword">{{ "newPassword" | i18n }}</bit-label>
<input bitInput type="password" formControlName="password" />
<button
data-testid="toggle-visibility-for-password"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export class SendOptionsComponent implements OnInit {
hideEmail: [false as boolean],
});

get showNewPassword(): boolean {
return this.config.mode === "edit" && this.originalSendView?.password !== null;
get shouldShowNewPassword(): boolean {
return this.originalSendView && this.originalSendView.password !== null;
}

get shouldShowCount(): boolean {
Expand Down

0 comments on commit a4646bb

Please sign in to comment.