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:
@@ -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>
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user