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

Commit

Permalink
update share link on send list copy (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Mar 11, 2021
1 parent c8cab2a commit f80e894
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/angular/components/send/send.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,12 @@ export class SendComponent implements OnInit {
}

copy(s: SendView) {
let webVaultUrl = this.environmentService.getWebVaultUrl();
if (webVaultUrl == null) {
webVaultUrl = 'https://vault.bitwarden.com';
let sendLinkBaseUrl = 'https://send.bitwarden.com/#';
const webVaultUrl = this.environmentService.getWebVaultUrl();
if (webVaultUrl != null) {
sendLinkBaseUrl = webVaultUrl + '/#/send/';
}
const link = webVaultUrl + '/#/send/' + s.accessId + '/' + s.urlB64Key;
const link = sendLinkBaseUrl + s.accessId + '/' + s.urlB64Key;
this.platformUtilsService.copyToClipboard(link);
this.platformUtilsService.showToast('success', null,
this.i18nService.t('valueCopied', this.i18nService.t('sendLink')));
Expand Down

0 comments on commit f80e894

Please sign in to comment.