mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-15 01:11:47 +01:00
Merge branch 'main' into auth/pm-8111/browser-refresh-login-component
This commit is contained in:
commit
1b17ddcc46
@ -39,7 +39,7 @@
|
||||
<th bitCell bitSortable="organizationId" *ngIf="!isAdminConsoleActive">
|
||||
{{ "owner" | i18n }}
|
||||
</th>
|
||||
<th bitCell class="tw-text-right" bitSortable="reportValue" default>
|
||||
<th bitCell class="tw-text-right" bitSortable="score" default>
|
||||
{{ "weakness" | i18n }}
|
||||
</th>
|
||||
</tr>
|
||||
|
@ -15,7 +15,7 @@ import { PasswordRepromptService } from "@bitwarden/vault";
|
||||
import { CipherReportComponent } from "./cipher-report.component";
|
||||
|
||||
type ReportScore = { label: string; badgeVariant: BadgeVariant };
|
||||
type ReportResult = CipherView & { reportValue: ReportScore };
|
||||
type ReportResult = CipherView & { score: number; reportValue: ReportScore };
|
||||
|
||||
@Component({
|
||||
selector: "app-weak-passwords-report",
|
||||
@ -100,7 +100,7 @@ export class WeakPasswordsReportComponent extends CipherReportComponent implemen
|
||||
|
||||
if (result.score != null && result.score <= 2) {
|
||||
const scoreValue = this.scoreKey(result.score);
|
||||
const row = { ...ciph, reportValue: scoreValue } as ReportResult;
|
||||
const row = { ...ciph, score: result.score, reportValue: scoreValue } as ReportResult;
|
||||
this.weakPasswordCiphers.push(row);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user