mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
Allow for the web generation dialog to disable the margin of the tools generation components (#11565)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { coerceBooleanProperty } from "@angular/cdk/coercion";
|
||||
import { Component, EventEmitter, Input, NgZone, OnDestroy, OnInit, Output } from "@angular/core";
|
||||
import { FormBuilder } from "@angular/forms";
|
||||
import {
|
||||
@@ -57,6 +58,9 @@ export class UsernameGeneratorComponent implements OnInit, OnDestroy {
|
||||
@Output()
|
||||
readonly onGenerated = new EventEmitter<GeneratedCredential>();
|
||||
|
||||
/** Removes bottom margin from internal elements */
|
||||
@Input({ transform: coerceBooleanProperty }) disableMargin = false;
|
||||
|
||||
/** Tracks the selected generation algorithm */
|
||||
protected credential = this.formBuilder.group({
|
||||
type: [null as CredentialAlgorithm],
|
||||
|
||||
Reference in New Issue
Block a user