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

[PM-26373] Update invitation accepted toast copy (#17021)

* update copy

* update copy

* update i18n.t

* use toast service, remove toast title

* fix spelling
This commit is contained in:
Brandon Treston
2025-10-27 10:35:18 -04:00
committed by GitHub
parent 64590cb3c8
commit ea4b6779a5
2 changed files with 10 additions and 9 deletions

View File

@@ -11,6 +11,7 @@ import { OrganizationInvite } from "@bitwarden/common/auth/services/organization
import { OrganizationInviteService } from "@bitwarden/common/auth/services/organization-invite/organization-invite.service"; import { OrganizationInviteService } from "@bitwarden/common/auth/services/organization-invite/organization-invite.service";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service"; import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service"; import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
import { ToastService } from "@bitwarden/components";
import { BaseAcceptComponent } from "../../common/base.accept.component"; import { BaseAcceptComponent } from "../../common/base.accept.component";
@@ -35,6 +36,7 @@ export class AcceptOrganizationComponent extends BaseAcceptComponent {
private acceptOrganizationInviteService: AcceptOrganizationInviteService, private acceptOrganizationInviteService: AcceptOrganizationInviteService,
private organizationInviteService: OrganizationInviteService, private organizationInviteService: OrganizationInviteService,
private accountService: AccountService, private accountService: AccountService,
private toastService: ToastService,
) { ) {
super(router, platformUtilsService, i18nService, route, authService); super(router, platformUtilsService, i18nService, route, authService);
} }
@@ -51,14 +53,13 @@ export class AcceptOrganizationComponent extends BaseAcceptComponent {
return; return;
} }
this.platformUtilService.showToast( this.toastService.showToast({
"success", message: invite.initOrganization
this.i18nService.t("inviteAccepted"),
invite.initOrganization
? this.i18nService.t("inviteInitAcceptedDesc") ? this.i18nService.t("inviteInitAcceptedDesc")
: this.i18nService.t("inviteAcceptedDesc"), : this.i18nService.t("invitationAcceptedDesc"),
{ timeout: 10000 }, variant: "success",
); timeout: 10000,
});
await this.router.navigate(["/vault"]); await this.router.navigate(["/vault"]);
} }

View File

@@ -4452,8 +4452,8 @@
"inviteAccepted": { "inviteAccepted": {
"message": "Invitation accepted" "message": "Invitation accepted"
}, },
"inviteAcceptedDesc": { "invitationAcceptedDesc": {
"message": "You can access this organization once an administrator confirms your membership. We'll send you an email when that happens." "message": "Successfully accepted your invitation."
}, },
"inviteInitAcceptedDesc": { "inviteInitAcceptedDesc": {
"message": "You can now access this organization." "message": "You can now access this organization."