1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 13:23:34 +00:00

Allow for the web generation dialog to disable the margin of the tools generation components (#11565)

This commit is contained in:
Nick Krantz
2024-10-18 15:57:34 -05:00
committed by GitHub
parent 97bf459424
commit 80a4fba787
11 changed files with 29 additions and 4 deletions

View File

@@ -1,8 +1,10 @@
<tools-password-generator
*ngIf="type === 'password'"
[disableMargin]="disableMargin"
(onGenerated)="onCredentialGenerated($event)"
></tools-password-generator>
<tools-username-generator
*ngIf="type === 'username'"
[disableMargin]="disableMargin"
(onGenerated)="onCredentialGenerated($event)"
></tools-username-generator>

View File

@@ -1,3 +1,4 @@
import { coerceBooleanProperty } from "@angular/cdk/coercion";
import { CommonModule } from "@angular/common";
import { Component, EventEmitter, Input, Output } from "@angular/core";
@@ -21,6 +22,9 @@ export class CipherFormGeneratorComponent {
@Input({ required: true })
type: "password" | "username";
/** Removes bottom margin of internal sections */
@Input({ transform: coerceBooleanProperty }) disableMargin = false;
/**
* Emits an event when a new value is generated.
*/