From f568c872898c86b3cf8b5a99f8b5b377cb5b49e7 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Fri, 18 Jun 2021 07:17:42 -0500 Subject: [PATCH] Add org name to moved to org success toast (#412) --- angular/src/components/share.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/angular/src/components/share.component.ts b/angular/src/components/share.component.ts index 2e7b078abf..d06c3aa79e 100644 --- a/angular/src/components/share.component.ts +++ b/angular/src/components/share.component.ts @@ -77,12 +77,14 @@ export class ShareComponent implements OnInit { const cipherDomain = await this.cipherService.get(this.cipherId); const cipherView = await cipherDomain.decrypt(); + const orgName = this.organizations.find(o => o.id === this.organizationId)?.name ?? this.i18nService.t('organization'); try { this.formPromise = this.cipherService.shareWithServer(cipherView, this.organizationId, selectedCollectionIds).then(async () => { this.onSharedCipher.emit(); - this.platformUtilsService.showToast('success', null, this.i18nService.t('sharedItem')); + this.platformUtilsService.showToast('success', null, + this.i18nService.t('movedItemToOrg', cipherView.name, orgName)); }); await this.formPromise; return true;