1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

PM-2593 Update Premium Urls to target cloudWebVaultUrl (#5861)

* updated urls in premium web component and premium libs to use the cloudwebvaulturl
* moved premium.component in web from base settings to a new settings folder inside vault
This commit is contained in:
Jason Ng
2023-08-09 14:10:01 -04:00
committed by GitHub
parent a7cce1a3ad
commit 96c6b870cb
7 changed files with 43 additions and 14 deletions

View File

@@ -4,6 +4,7 @@ import { Component } from "@angular/core";
import { DialogServiceAbstraction } from "@bitwarden/angular/services/dialog";
import { PremiumComponent as BasePremiumComponent } from "@bitwarden/angular/vault/components/premium.component";
import { ApiService } from "@bitwarden/common/abstractions/api.service";
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
@@ -24,9 +25,18 @@ export class PremiumComponent extends BasePremiumComponent {
logService: LogService,
private location: Location,
private currencyPipe: CurrencyPipe,
dialogService: DialogServiceAbstraction
dialogService: DialogServiceAbstraction,
environmentService: EnvironmentService
) {
super(i18nService, platformUtilsService, apiService, logService, stateService, dialogService);
super(
i18nService,
platformUtilsService,
apiService,
logService,
stateService,
dialogService,
environmentService
);
// Support old price string. Can be removed in future once all translations are properly updated.
const thePrice = this.currencyPipe.transform(this.price, "$");