mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
@@ -6,7 +6,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';
|
||||
@@ -23,7 +22,7 @@ export class UpdateLicenseComponent {
|
||||
formPromise: Promise<any>;
|
||||
|
||||
constructor(private apiService: ApiService, private i18nService: I18nService,
|
||||
private analytics: Angulartics2, private toasterService: ToasterService) { }
|
||||
private toasterService: ToasterService) { }
|
||||
|
||||
async submit() {
|
||||
const fileEl = document.getElementById('file') as HTMLInputElement;
|
||||
@@ -50,7 +49,6 @@ export class UpdateLicenseComponent {
|
||||
});
|
||||
|
||||
await this.formPromise;
|
||||
this.analytics.eventTrack.next({ action: 'Updated License' });
|
||||
this.toasterService.popAsync('success', null, this.i18nService.t('updatedLicense'));
|
||||
this.onUpdated.emit();
|
||||
} catch { }
|
||||
|
||||
Reference in New Issue
Block a user