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:
@@ -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>
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user