1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 02:03:39 +00:00
Files
browser/libs/tools/generator/components/src/credential-generator-history-dialog.component.html
Oscar Hinton 267e488390 [BEEEP] [PM-28239] Migrate generators to standalone (#17386)
* Migrate generators to use standalone and control flow

* Resolve feedback

* Add variable for account

* Fix generators
2025-12-11 12:04:15 +01:00

22 lines
601 B
HTML

<bit-dialog #dialog background="alt">
<span bitDialogTitle>{{ "generatorHistory" | i18n }}</span>
<ng-container bitDialogContent>
@if (hasHistory$ | async) {
<bit-credential-generator-history [account]="account$ | async" />
} @else {
<bit-empty-credential-history style="display: contents" />
}
</ng-container>
<ng-container bitDialogFooter>
<button
[disabled]="!(hasHistory$ | async)"
bitButton
type="submit"
buttonType="primary"
(click)="clear()"
>
{{ "clearHistory" | i18n }}
</button>
</ng-container>
</bit-dialog>