diff --git a/libs/auth/src/angular/self-hosted-env-config-dialog/self-hosted-env-config-dialog.component.ts b/libs/auth/src/angular/self-hosted-env-config-dialog/self-hosted-env-config-dialog.component.ts index 8d80a38d7ad..06a1c83769a 100644 --- a/libs/auth/src/angular/self-hosted-env-config-dialog/self-hosted-env-config-dialog.component.ts +++ b/libs/auth/src/angular/self-hosted-env-config-dialog/self-hosted-env-config-dialog.component.ts @@ -2,7 +2,7 @@ // @ts-strict-ignore import { DialogRef } from "@angular/cdk/dialog"; import { CommonModule } from "@angular/common"; -import { Component, OnDestroy, OnInit } from "@angular/core"; +import { Component, OnDestroy, OnInit, HostListener } from "@angular/core"; import { AbstractControl, FormBuilder, @@ -161,6 +161,21 @@ export class SelfHostedEnvConfigDialogComponent implements OnInit, OnDestroy { }); } + @HostListener("document:keydown.control.b", ["$event"]) + onCtrlB(event: KeyboardEvent) { + if (process.env.ENV === "development") { + event.preventDefault(); + this.formGroup.patchValue({ + baseUrl: "", + webVaultUrl: "https://localhost:8080", + apiUrl: "http://localhost:4000", + identityUrl: "http://localhost:33656", + iconsUrl: "http://localhost:50024", + notificationsUrl: "http://localhost:61840", + }); + } + } + submit = async () => { this.showErrorSummary = false;