Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Lanzilotto committed Oct 17, 2023
1 parent afffed3 commit a23b2a3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/app/knowledge-bases/knowledge-bases.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ export class KnowledgeBasesComponent implements OnInit, OnDestroy {
this.getLoggedUser();
this.getCurrentProject()
this.getRouteParams()
this.getRouteParams()
}

getRouteParams() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/users/users.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
{{ 'NumberOfTeammatesExceedsThePlan_2' | translate: tParamsPlanAndSeats }}
</span>
<div class="upgrade--plan-btn-wpr" style="text-align: center;">
<button class="upgrade--plan-btn" (click)="openModalSubsExpired()">
<button class="upgrade--plan-btn" (click)="presentContactUsModal()">
{{ "Pricing.UpgradePlan" | translate }}
</button>
</div>
Expand Down
16 changes: 14 additions & 2 deletions src/app/users/users.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ export class UsersComponent implements OnInit, OnDestroy {
}


ngOnDestroy() {
this.subscription.unsubscribe()
}



getBrowserVersion() {
this.auth.isChromeVerGreaterThan100.subscribe((isChromeVerGreaterThan100: boolean) => {
Expand Down Expand Up @@ -484,8 +489,15 @@ export class UsersComponent implements OnInit, OnDestroy {
// })
// }

ngOnDestroy() {
this.subscription.unsubscribe()


presentContactUsModal() {
if (this.USER_ROLE === 'owner') {
this.notify._displayContactUsModal(true, 'upgrade_plan')
} else {
this.presentModalOnlyOwnerCanManageTheAccountPlan()
}

}

openModalSubsExpired() {
Expand Down

0 comments on commit a23b2a3

Please sign in to comment.