1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-06-30 11:15:36 +02:00

delete org copy

This commit is contained in:
Kyle Spearrin 2024-04-09 12:30:54 -04:00
parent e16fb585fd
commit c11132d70d
4 changed files with 13 additions and 7 deletions

View File

@ -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 }}"

View File

@ -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

View File

@ -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",

View File

@ -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"
},