mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-01 04:37:40 +02:00
delete org copy
This commit is contained in:
parent
e16fb585fd
commit
c11132d70d
@ -1,14 +1,14 @@
|
||||
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" class="container" ngNativeValidate>
|
||||
<div class="row justify-content-md-center mt-5">
|
||||
<div class="col-5">
|
||||
<p class="lead text-center mb-4">{{ "deleteAccount" | i18n }}</p>
|
||||
<p class="lead text-center mb-4">{{ "deleteOrganization" | i18n }}</p>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<app-callout type="warning">{{ "deleteAccountWarning" | i18n }}</app-callout>
|
||||
<app-callout type="warning">{{ "deleteOrganizationWarning" | i18n }}</app-callout>
|
||||
<p class="text-center">
|
||||
<strong>{{ name }}</strong>
|
||||
</p>
|
||||
<p>{{ "deleteRecoverConfirmDesc" | i18n }}</p>
|
||||
<p>{{ "deleteRecoverOrgConfirmDesc" | i18n }}</p>
|
||||
<hr />
|
||||
<div class="d-flex">
|
||||
<button
|
||||
@ -16,7 +16,7 @@
|
||||
class="btn btn-danger btn-block btn-submit"
|
||||
[disabled]="form.loading"
|
||||
>
|
||||
<span>{{ "deleteAccount" | i18n }}</span>
|
||||
<span>{{ "deleteOrganization" | i18n }}</span>
|
||||
<i
|
||||
class="bwi bwi-spinner bwi-spin"
|
||||
title="{{ 'loading' | i18n }}"
|
||||
|
@ -50,8 +50,8 @@ export class VerifyRecoverDeleteOrgComponent implements OnInit {
|
||||
await this.formPromise;
|
||||
this.platformUtilsService.showToast(
|
||||
"success",
|
||||
this.i18nService.t("accountDeleted"),
|
||||
this.i18nService.t("accountDeletedDesc"),
|
||||
this.i18nService.t("organizationDeleted"),
|
||||
this.i18nService.t("organizationDeletedDesc"),
|
||||
);
|
||||
// FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
|
@ -161,7 +161,7 @@ const routes: Routes = [
|
||||
path: "verify-recover-delete-org",
|
||||
component: VerifyRecoverDeleteOrgComponent,
|
||||
canActivate: [UnauthGuard],
|
||||
data: { titleId: "deleteAccount" },
|
||||
data: { titleId: "deleteOrganization" },
|
||||
},
|
||||
{
|
||||
path: "send/:sendId/:key",
|
||||
|
@ -1341,6 +1341,9 @@
|
||||
"accountDeletedDesc": {
|
||||
"message": "Your account has been closed and all associated data has been deleted."
|
||||
},
|
||||
"deleteOrganizationWarning": {
|
||||
"message": "Deleting your organization is permanent. It cannot be undone."
|
||||
},
|
||||
"myAccount": {
|
||||
"message": "My account"
|
||||
},
|
||||
@ -3362,6 +3365,9 @@
|
||||
"deleteRecoverConfirmDesc": {
|
||||
"message": "You have requested to delete your Bitwarden account. Use the button below to confirm."
|
||||
},
|
||||
"deleteRecoverOrgConfirmDesc": {
|
||||
"message": "You have requested to delete your Bitwarden organization. Use the button below to confirm."
|
||||
},
|
||||
"myOrganization": {
|
||||
"message": "My organization"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user