mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
[PM-4952] Remove Password Component Bug Fixes (#9697)
* fix button padding * convert to arrow functions
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
bitButton
|
bitButton
|
||||||
type="button"
|
type="button"
|
||||||
buttonType="primary"
|
buttonType="primary"
|
||||||
class="tw-w-full"
|
class="tw-w-full tw-mb-2"
|
||||||
[bitAction]="convert"
|
[bitAction]="convert"
|
||||||
[block]="true"
|
[block]="true"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export class RemovePasswordComponent implements OnInit {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
async convert() {
|
convert = async () => {
|
||||||
this.continuing = true;
|
this.continuing = true;
|
||||||
this.actionPromise = this.keyConnectorService.migrateUser();
|
this.actionPromise = this.keyConnectorService.migrateUser();
|
||||||
|
|
||||||
@@ -59,9 +59,9 @@ export class RemovePasswordComponent implements OnInit {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.platformUtilsService.showToast("error", this.i18nService.t("errorOccurred"), e.message);
|
this.platformUtilsService.showToast("error", this.i18nService.t("errorOccurred"), e.message);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
async leave() {
|
leave = async () => {
|
||||||
const confirmed = await this.dialogService.openSimpleDialog({
|
const confirmed = await this.dialogService.openSimpleDialog({
|
||||||
title: this.organization.name,
|
title: this.organization.name,
|
||||||
content: { key: "leaveOrganizationConfirmation" },
|
content: { key: "leaveOrganizationConfirmation" },
|
||||||
@@ -84,5 +84,5 @@ export class RemovePasswordComponent implements OnInit {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.platformUtilsService.showToast("error", this.i18nService.t("errorOccurred"), e);
|
this.platformUtilsService.showToast("error", this.i18nService.t("errorOccurred"), e);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user