Skip to content

Commit

Permalink
Merge pull request #69 from BlackDex/fix-billing-call
Browse files Browse the repository at this point in the history
Fix billing call and small Makefile change.
  • Loading branch information
dani-garcia authored Jun 4, 2022
2 parents 9121922 + 39e6d1d commit 12e588e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ docker-extract: docker
@docker rm bw_web_vault_extract || true
@docker create --name bw_web_vault_extract bw_web_vault
@mkdir -vp docker_builds
@rm -rf ./docker_builds/bw_web_vault.tar.gz ./docker_builds/web-vault
@docker cp bw_web_vault_extract:/bw_web_vault.tar.gz ./docker_builds/bw_web_vault.tar.gz
@docker cp bw_web_vault_extract:/web-vault ./docker_builds/web-vault
@docker rm bw_web_vault_extract || true
Expand Down
29 changes: 29 additions & 0 deletions patches/v2022.05.0.patch
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,35 @@ index eacfea97..c2f81033 100644
this.environmentService.setUrls(urls);

setTimeout(() => this.notificationsService.init(), 3000);
diff --git a/src/app/settings/settings.component.ts b/src/app/settings/settings.component.ts
index 9756ba41..348c3843 100644
--- a/src/app/settings/settings.component.ts
+++ b/src/app/settings/settings.component.ts
@@ -55,10 +55,6 @@ export class SettingsComponent implements OnInit, OnDestroy {
this.hasFamilySponsorshipAvailable = await this.organizationService.canManageSponsorships();
const hasPremiumFromOrg = await this.stateService.getCanAccessPremium();
let billing = null;
- if (!this.selfHosted) {
- billing = await this.apiService.getUserBillingHistory();
- }
- this.hideSubscription =
- !this.premium && hasPremiumFromOrg && (this.selfHosted || billing?.hasNoHistory);
+ this.hideSubscription = true;
}
}
diff --git a/src/app/settings/user-billing-history.component.ts b/src/app/settings/user-billing-history.component.ts
index ae26862d..69ff16a0 100644
--- a/src/app/settings/user-billing-history.component.ts
+++ b/src/app/settings/user-billing-history.component.ts
@@ -39,7 +39,7 @@ export class UserBillingHistoryComponent implements OnInit {
return;
}
this.loading = true;
- this.billing = await this.apiService.getUserBillingHistory();
+ this.billing = null;
this.loading = false;
}

diff --git a/src/app/vault/add-edit.component.html b/src/app/vault/add-edit.component.html
index 37410ea5..8c9e1a6f 100644
--- a/src/app/vault/add-edit.component.html
Expand Down

0 comments on commit 12e588e

Please sign in to comment.