Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
Add org name to moved to org success toast (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
MGibson1 committed Jun 18, 2021
1 parent 1f83c3c commit f568c87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion angular/src/components/share.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f568c87

Please sign in to comment.