Update jslib (#1737)

This commit is contained in:
Matt Gibson 2021-03-24 11:26:18 -05:00 committed by GitHub
parent ed2837e826
commit fd92ec8924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

2
jslib

@ -1 +1 @@
Subproject commit f20af0cd7c90adc07783950bed197b5d47892d6f Subproject commit 7f3bbd6e514585750477f6b5f27e3d996c24902e

View File

@ -4,7 +4,7 @@ import { Component } from '@angular/core';
import { ApiService } from 'jslib/abstractions/api.service'; import { ApiService } from 'jslib/abstractions/api.service';
import { I18nService } from 'jslib/abstractions/i18n.service'; import { I18nService } from 'jslib/abstractions/i18n.service';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service'; import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import { TokenService } from 'jslib/abstractions/token.service'; import { UserService } from 'jslib/abstractions/user.service';
import { PremiumComponent as BasePremiumComponent } from 'jslib/angular/components/premium.component'; import { PremiumComponent as BasePremiumComponent } from 'jslib/angular/components/premium.component';
@ -16,9 +16,9 @@ export class PremiumComponent extends BasePremiumComponent {
priceString: string; priceString: string;
constructor(i18nService: I18nService, platformUtilsService: PlatformUtilsService, constructor(i18nService: I18nService, platformUtilsService: PlatformUtilsService,
tokenService: TokenService, apiService: ApiService, apiService: ApiService, userService: UserService,
private currencyPipe: CurrencyPipe) { private currencyPipe: CurrencyPipe) {
super(i18nService, platformUtilsService, tokenService, apiService); super(i18nService, platformUtilsService, apiService, userService);
// Support old price string. Can be removed in future once all translations are properly updated. // Support old price string. Can be removed in future once all translations are properly updated.
const thePrice = this.currencyPipe.transform(this.price, '$'); const thePrice = this.currencyPipe.transform(this.price, '$');