colorize password history (#11754)

This commit is contained in:
✨ Audrey ✨ 2024-10-28 15:19:17 -04:00 committed by GitHub
parent 71db154856
commit a9d667900f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,10 @@
<bit-card *ngFor="let credential of credentials$ | async" class="tw-mb-2"> <bit-card *ngFor="let credential of credentials$ | async" class="tw-mb-2">
<div class="tw-flex tw-justify-between tw-items-center"> <div class="tw-flex tw-justify-between tw-items-center">
<div class="tw-flex tw-flex-col"> <div class="tw-flex tw-flex-col">
<h2 bitTypography="h6">{{ credential.credential }}</h2> <bit-color-password
class="tw-font-mono"
[password]="credential.credential"
></bit-color-password>
<span class="tw-text-muted" bitTypography="body1">{{ <span class="tw-text-muted" bitTypography="body1">{{
credential.generationDate | date: "medium" credential.generationDate | date: "medium"
}}</span> }}</span>

View File

@ -9,6 +9,7 @@ import { AccountService } from "@bitwarden/common/auth/abstractions/account.serv
import { UserId } from "@bitwarden/common/types/guid"; import { UserId } from "@bitwarden/common/types/guid";
import { import {
CardComponent, CardComponent,
ColorPasswordModule,
IconButtonModule, IconButtonModule,
NoItemsModule, NoItemsModule,
SectionComponent, SectionComponent,
@ -21,6 +22,7 @@ import { GeneratedCredential, GeneratorHistoryService } from "@bitwarden/generat
selector: "bit-credential-generator-history", selector: "bit-credential-generator-history",
templateUrl: "credential-generator-history.component.html", templateUrl: "credential-generator-history.component.html",
imports: [ imports: [
ColorPasswordModule,
CommonModule, CommonModule,
IconButtonModule, IconButtonModule,
NoItemsModule, NoItemsModule,