mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
remove analytics in favor of platform utils
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import { CurrencyPipe } from '@angular/common';
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
import { Angulartics2 } from 'angulartics2';
|
||||
|
||||
import { ApiService } from 'jslib/abstractions/api.service';
|
||||
import { I18nService } from 'jslib/abstractions/i18n.service';
|
||||
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
||||
@@ -17,11 +15,10 @@ import { PremiumComponent as BasePremiumComponent } from 'jslib/angular/componen
|
||||
export class PremiumComponent extends BasePremiumComponent {
|
||||
priceString: string;
|
||||
|
||||
constructor(analytics: Angulartics2,
|
||||
i18nService: I18nService, platformUtilsService: PlatformUtilsService,
|
||||
constructor(i18nService: I18nService, platformUtilsService: PlatformUtilsService,
|
||||
tokenService: TokenService, apiService: ApiService,
|
||||
private currencyPipe: CurrencyPipe) {
|
||||
super(analytics, i18nService, platformUtilsService, tokenService, apiService);
|
||||
super(i18nService, platformUtilsService, tokenService, apiService);
|
||||
|
||||
// Support old price string. Can be removed in future once all translations are properly updated.
|
||||
const thePrice = this.currencyPipe.transform(this.price, '$');
|
||||
|
||||
Reference in New Issue
Block a user