1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-21 10:43:23 +00:00

Remove last remnants of old analytics code (#345)

This commit is contained in:
Oscar Hinton
2021-04-14 21:34:30 +02:00
committed by GitHub
parent 0a0cdaa7fd
commit 92df633040
26 changed files with 1 additions and 202 deletions

View File

@@ -129,7 +129,6 @@ export class ViewComponent implements OnDestroy, OnInit {
try {
await this.deleteCipher();
this.platformUtilsService.eventTrack((this.cipher.isDeleted ? 'Permanently ' : '') + 'Deleted Cipher');
this.platformUtilsService.showToast('success', null,
this.i18nService.t(this.cipher.isDeleted ? 'permanentlyDeletedItem' : 'deletedItem'));
this.onDeletedCipher.emit(this.cipher);
@@ -152,7 +151,6 @@ export class ViewComponent implements OnDestroy, OnInit {
try {
await this.restoreCipher();
this.platformUtilsService.eventTrack('Restored Cipher');
this.platformUtilsService.showToast('success', null, this.i18nService.t('restoredItem'));
this.onRestoredCipher.emit(this.cipher);
} catch { }
@@ -161,7 +159,6 @@ export class ViewComponent implements OnDestroy, OnInit {
}
togglePassword() {
this.platformUtilsService.eventTrack('Toggled Password');
this.showPassword = !this.showPassword;
if (this.showPassword) {
this.eventService.collect(EventType.Cipher_ClientToggledPasswordVisible, this.cipherId);
@@ -169,7 +166,6 @@ export class ViewComponent implements OnDestroy, OnInit {
}
toggleCardCode() {
this.platformUtilsService.eventTrack('Toggled Card Code');
this.showCardCode = !this.showCardCode;
if (this.showCardCode) {
this.eventService.collect(EventType.Cipher_ClientToggledCardCodeVisible, this.cipherId);
@@ -181,7 +177,6 @@ export class ViewComponent implements OnDestroy, OnInit {
return;
}
this.platformUtilsService.eventTrack('Check Password');
this.checkPasswordPromise = this.auditService.passwordLeaked(this.cipher.login.password);
const matches = await this.checkPasswordPromise;
@@ -210,7 +205,6 @@ export class ViewComponent implements OnDestroy, OnInit {
this.cipherService.updateLastLaunchedDate(cipherId);
}
this.platformUtilsService.eventTrack('Launched Login URI');
this.platformUtilsService.launchUri(uri.launchUri);
}
@@ -219,7 +213,6 @@ export class ViewComponent implements OnDestroy, OnInit {
return;
}
this.platformUtilsService.eventTrack('Copied ' + aType);
const copyOptions = this.win != null ? { window: this.win } : null;
this.platformUtilsService.copyToClipboard(value, copyOptions);
this.platformUtilsService.showToast('info', null,