mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
update share link on send list copy (#305)
This commit is contained in:
parent
c8cab2a9e7
commit
f80e89465f
@ -168,11 +168,12 @@ export class SendComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
copy(s: SendView) {
|
copy(s: SendView) {
|
||||||
let webVaultUrl = this.environmentService.getWebVaultUrl();
|
let sendLinkBaseUrl = 'https://send.bitwarden.com/#';
|
||||||
if (webVaultUrl == null) {
|
const webVaultUrl = this.environmentService.getWebVaultUrl();
|
||||||
webVaultUrl = 'https://vault.bitwarden.com';
|
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.copyToClipboard(link);
|
||||||
this.platformUtilsService.showToast('success', null,
|
this.platformUtilsService.showToast('success', null,
|
||||||
this.i18nService.t('valueCopied', this.i18nService.t('sendLink')));
|
this.i18nService.t('valueCopied', this.i18nService.t('sendLink')));
|
||||||
|
Loading…
Reference in New Issue
Block a user