1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 03:03:43 +00:00

Remove all TypeScript region use as it is now against the Bitwarden code style guide. (#5356)

This commit is contained in:
Jared Snider
2023-05-04 10:48:01 -04:00
committed by GitHub
parent f06c017e42
commit 120fd14213
4 changed files with 20 additions and 29 deletions

View File

@@ -69,7 +69,7 @@ export class DomainAddEditDialogComponent implements OnInit, OnDestroy {
private dialogService: DialogServiceAbstraction
) {}
//#region Angular Method Implementations
// Angular Method Implementations
async ngOnInit(): Promise<void> {
// If we have data.orgDomain, then editing, otherwise creating new domain
@@ -81,9 +81,9 @@ export class DomainAddEditDialogComponent implements OnInit, OnDestroy {
this.componentDestroyed$.complete();
}
//#endregion
// End Angular Method Implementations
//#region Form methods
// Form methods
async populateForm(): Promise<void> {
if (this.data.orgDomain) {
@@ -118,9 +118,9 @@ export class DomainAddEditDialogComponent implements OnInit, OnDestroy {
this.orgDomainService.copyDnsTxt(this.txtCtrl.value);
}
//#endregion
// End Form methods
//#region Async Form Actions
// Async Form Actions
saveDomain = async (): Promise<void> => {
if (this.domainForm.invalid) {
this.platformUtilsService.showToast("error", null, this.i18nService.t("domainFormInvalid"));
@@ -266,5 +266,5 @@ export class DomainAddEditDialogComponent implements OnInit, OnDestroy {
this.dialogRef.close();
};
//#endregion
// End Async Form Actions
}

View File

@@ -96,7 +96,7 @@ export class DomainVerificationComponent implements OnInit, OnDestroy {
return existingDomainNames;
}
//#region Options
// Options
copyDnsTxt(dnsTxt: string): void {
this.orgDomainService.copyDnsTxt(dnsTxt);
@@ -169,8 +169,6 @@ export class DomainVerificationComponent implements OnInit, OnDestroy {
this.platformUtilsService.showToast("success", null, this.i18nService.t("domainRemoved"));
}
//#endregion
ngOnDestroy(): void {
this.componentDestroyed$.next();
this.componentDestroyed$.complete();