1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-24 16:49:26 +01:00

[PM-4952] Remove Password Component Bug Fixes (#9697)

* fix button padding

* convert to arrow functions
This commit is contained in:
rr-bw 2024-06-20 09:04:35 -07:00 committed by GitHub
parent b306554675
commit 9fc89aa450
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@
bitButton
type="button"
buttonType="primary"
class="tw-w-full"
class="tw-w-full tw-mb-2"
[bitAction]="convert"
[block]="true"
>

View File

@ -41,7 +41,7 @@ export class RemovePasswordComponent implements OnInit {
this.loading = false;
}
async convert() {
convert = async () => {
this.continuing = true;
this.actionPromise = this.keyConnectorService.migrateUser();
@ -59,9 +59,9 @@ export class RemovePasswordComponent implements OnInit {
} catch (e) {
this.platformUtilsService.showToast("error", this.i18nService.t("errorOccurred"), e.message);
}
}
};
async leave() {
leave = async () => {
const confirmed = await this.dialogService.openSimpleDialog({
title: this.organization.name,
content: { key: "leaveOrganizationConfirmation" },
@ -84,5 +84,5 @@ export class RemovePasswordComponent implements OnInit {
} catch (e) {
this.platformUtilsService.showToast("error", this.i18nService.t("errorOccurred"), e);
}
}
};
}