1
0
mirror of https://github.com/bitwarden/browser synced 2025-01-10 01:13:52 +01:00

[PM-15418] Remove bitItem and use plain bitLink button for opening generator history (#12208)

* Remove bitItem and use plain bitLink button for opening generator history

* Revert desktop back to use bitItem

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
Daniel James Smith 2024-12-02 20:26:13 +01:00 committed by GitHub
parent 0ff48aa345
commit 19663d9587
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 23 deletions

View File

@ -6,6 +6,7 @@
<button
type="button"
bitLink
linkType="primary"
bit-item-content
aria-haspopup="true"
(click)="openHistoryDialog()"

View File

@ -17,15 +17,7 @@ import {
standalone: true,
selector: "credential-generator",
templateUrl: "credential-generator.component.html",
imports: [
DialogModule,
ButtonModule,
JslibModule,
GeneratorModule,
ItemModule,
ButtonModule,
LinkModule,
],
imports: [DialogModule, ButtonModule, JslibModule, GeneratorModule, ItemModule, LinkModule],
})
export class CredentialGeneratorComponent {
constructor(private dialogService: DialogService) {}

View File

@ -2,16 +2,13 @@
<bit-container>
<tools-credential-generator />
<bit-item>
<button
type="button"
bitLink
bit-item-content
aria-haspopup="true"
(click)="openHistoryDialog()"
>
{{ "generatorHistory" | i18n }}
<i slot="end" class="bwi bwi-angle-right" aria-hidden="true"></i>
</button>
</bit-item>
<button
bitLink
type="button"
linkType="primary"
aria-haspopup="true"
(click)="openHistoryDialog()"
>
{{ "generatorHistory" | i18n }}
</button>
</bit-container>

View File

@ -1,6 +1,6 @@
import { Component } from "@angular/core";
import { ButtonModule, DialogService, ItemModule, LinkModule } from "@bitwarden/components";
import { ButtonModule, DialogService, LinkModule } from "@bitwarden/components";
import {
CredentialGeneratorHistoryDialogComponent,
GeneratorModule,
@ -13,7 +13,7 @@ import { SharedModule } from "../../shared";
standalone: true,
selector: "credential-generator",
templateUrl: "credential-generator.component.html",
imports: [SharedModule, HeaderModule, GeneratorModule, ItemModule, ButtonModule, LinkModule],
imports: [SharedModule, HeaderModule, GeneratorModule, ButtonModule, LinkModule],
})
export class CredentialGeneratorComponent {
constructor(private dialogService: DialogService) {}