1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

[PM-20034] - [Vault][Browser] Display View Login button and specific banner when an At-risk password task is missing a valid website (#16206)

* add banner for at risk pw without uri

* remove unnecessary title attr. use hasUris
This commit is contained in:
Jordan Aasen
2025-09-04 15:30:39 -07:00
committed by GitHub
parent 63dfca2bba
commit e8e1a9891a
5 changed files with 40 additions and 9 deletions

View File

@@ -4,10 +4,14 @@
</bit-callout>
<bit-callout
*ngIf="cipher?.login.uris.length > 0 && hadPendingChangePasswordTask"
*ngIf="!hasLoginUri && hadPendingChangePasswordTask"
type="warning"
[title]="''"
[title]="'missingWebsite' | i18n"
>
{{ "changeAtRiskPasswordAndAddWebsite" | i18n }}
</bit-callout>
<bit-callout *ngIf="hasLoginUri && hadPendingChangePasswordTask" type="warning" [title]="''">
<i class="bwi bwi-exclamation-triangle tw-text-warning" aria-hidden="true"></i>
<a bitLink href="#" appStopClick (click)="launchChangePassword()">
{{ "changeAtRiskPassword" | i18n }}
@@ -39,7 +43,7 @@
*ngIf="hasLogin"
[cipher]="cipher"
[activeUserId]="activeUserId$ | async"
[hadPendingChangePasswordTask]="hadPendingChangePasswordTask"
[hadPendingChangePasswordTask]="hadPendingChangePasswordTask && cipher?.login.uris.length > 0"
(handleChangePassword)="launchChangePassword()"
></app-login-credentials-view>

View File

@@ -139,6 +139,10 @@ export class CipherViewComponent implements OnChanges, OnDestroy {
return !!this.cipher?.sshKey?.privateKey;
}
get hasLoginUri() {
return this.cipher?.login?.hasUris;
}
async loadCipherData() {
if (!this.cipher) {
return;