1
0
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:
Kyle Spearrin
2018-10-03 00:21:22 -04:00
parent 89a448b12f
commit adb3dc78ee
19 changed files with 50 additions and 86 deletions

View File

@@ -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, '$');