mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 17:53:39 +00:00
@@ -7,7 +7,6 @@ import {
|
||||
} from '@angular/core';
|
||||
|
||||
import { ToasterService } from 'angular2-toaster';
|
||||
import { Angulartics2 } from 'angulartics2';
|
||||
|
||||
import { ApiService } from 'jslib/abstractions/api.service';
|
||||
import { I18nService } from 'jslib/abstractions/i18n.service';
|
||||
@@ -36,7 +35,7 @@ export class AdjustPaymentComponent {
|
||||
formPromise: Promise<any>;
|
||||
|
||||
constructor(private apiService: ApiService, private i18nService: I18nService,
|
||||
private analytics: Angulartics2, private toasterService: ToasterService) { }
|
||||
private toasterService: ToasterService) { }
|
||||
|
||||
async submit() {
|
||||
try {
|
||||
@@ -59,9 +58,6 @@ export class AdjustPaymentComponent {
|
||||
}
|
||||
});
|
||||
await this.formPromise;
|
||||
this.analytics.eventTrack.next({
|
||||
action: this.currentType == null ? 'Added Payment Method' : 'Changed Payment Method',
|
||||
});
|
||||
this.toasterService.popAsync('success', null, this.i18nService.t('updatedPaymentMethod'));
|
||||
this.onAdjusted.emit();
|
||||
} catch { }
|
||||
|
||||
Reference in New Issue
Block a user