mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-11 19:40:47 +01:00
fix copy options
This commit is contained in:
parent
1f9fbe43d7
commit
bf9a9c5f9f
@ -27,7 +27,7 @@ export class PasswordGeneratorHistoryComponent implements OnInit {
|
|||||||
|
|
||||||
copy(password: string) {
|
copy(password: string) {
|
||||||
this.analytics.eventTrack.next({ action: 'Copied Historical Password' });
|
this.analytics.eventTrack.next({ action: 'Copied Historical Password' });
|
||||||
const copyOptions = this.win != null ? { doc: this.win.document } : null;
|
const copyOptions = this.win != null ? { window: this.win } : null;
|
||||||
this.platformUtilsService.copyToClipboard(password, copyOptions);
|
this.platformUtilsService.copyToClipboard(password, copyOptions);
|
||||||
this.toasterService.popAsync('info', null, this.i18nService.t('valueCopied', this.i18nService.t('password')));
|
this.toasterService.popAsync('info', null, this.i18nService.t('valueCopied', this.i18nService.t('password')));
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ export class PasswordGeneratorComponent implements OnInit {
|
|||||||
|
|
||||||
copy() {
|
copy() {
|
||||||
this.analytics.eventTrack.next({ action: 'Copied Generated Password' });
|
this.analytics.eventTrack.next({ action: 'Copied Generated Password' });
|
||||||
const copyOptions = this.win != null ? { doc: this.win.document } : null;
|
const copyOptions = this.win != null ? { window: this.win } : null;
|
||||||
this.platformUtilsService.copyToClipboard(this.password, copyOptions);
|
this.platformUtilsService.copyToClipboard(this.password, copyOptions);
|
||||||
this.toasterService.popAsync('info', null, this.i18nService.t('valueCopied', this.i18nService.t('password')));
|
this.toasterService.popAsync('info', null, this.i18nService.t('valueCopied', this.i18nService.t('password')));
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ export class PasswordHistoryComponent implements OnInit {
|
|||||||
|
|
||||||
copy(password: string) {
|
copy(password: string) {
|
||||||
this.analytics.eventTrack.next({ action: 'Copied Password History' });
|
this.analytics.eventTrack.next({ action: 'Copied Password History' });
|
||||||
const copyOptions = this.win != null ? { doc: this.win.document } : null;
|
const copyOptions = this.win != null ? { window: this.win } : null;
|
||||||
this.platformUtilsService.copyToClipboard(password, copyOptions);
|
this.platformUtilsService.copyToClipboard(password, copyOptions);
|
||||||
this.toasterService.popAsync('info', null, this.i18nService.t('valueCopied', this.i18nService.t('password')));
|
this.toasterService.popAsync('info', null, this.i18nService.t('valueCopied', this.i18nService.t('password')));
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ export class ViewComponent implements OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.analytics.eventTrack.next({ action: 'Copied ' + aType });
|
this.analytics.eventTrack.next({ action: 'Copied ' + aType });
|
||||||
const copyOptions = this.win != null ? { doc: this.win.document } : null;
|
const copyOptions = this.win != null ? { window: this.win } : null;
|
||||||
this.platformUtilsService.copyToClipboard(value, copyOptions);
|
this.platformUtilsService.copyToClipboard(value, copyOptions);
|
||||||
this.toasterService.popAsync('info', null,
|
this.toasterService.popAsync('info', null,
|
||||||
this.i18nService.t('valueCopied', this.i18nService.t(typeI18nKey)));
|
this.i18nService.t('valueCopied', this.i18nService.t(typeI18nKey)));
|
||||||
|
Loading…
Reference in New Issue
Block a user