1
0
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:
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,3 +1,4 @@
import { coerceBooleanProperty } from "@angular/cdk/coercion";
import { Component, EventEmitter, Input, NgZone, OnDestroy, OnInit, Output } from "@angular/core";
import {
BehaviorSubject,
@@ -45,6 +46,9 @@ export class PasswordGeneratorComponent implements OnInit, OnDestroy {
@Input()
userId: UserId | null;
/** Removes bottom margin, passed to downstream components */
@Input({ transform: coerceBooleanProperty }) disableMargin = false;
/** tracks the currently selected credential type */
protected credentialType$ = new BehaviorSubject<PasswordAlgorithm>(null);