diff --git a/src/app/knowledge-bases/knowledge-bases.component.ts b/src/app/knowledge-bases/knowledge-bases.component.ts index 260bd3feae85..469c8d6b6856 100644 --- a/src/app/knowledge-bases/knowledge-bases.component.ts +++ b/src/app/knowledge-bases/knowledge-bases.component.ts @@ -87,7 +87,6 @@ export class KnowledgeBasesComponent implements OnInit, OnDestroy { this.getLoggedUser(); this.getCurrentProject() this.getRouteParams() - this.getRouteParams() } getRouteParams() { diff --git a/src/app/users/users.component.html b/src/app/users/users.component.html index 68fe80a12c09..8582f7e04ed6 100755 --- a/src/app/users/users.component.html +++ b/src/app/users/users.component.html @@ -105,7 +105,7 @@ {{ 'NumberOfTeammatesExceedsThePlan_2' | translate: tParamsPlanAndSeats }}
-
diff --git a/src/app/users/users.component.ts b/src/app/users/users.component.ts index c085e563e725..c71104697dda 100755 --- a/src/app/users/users.component.ts +++ b/src/app/users/users.component.ts @@ -131,6 +131,11 @@ export class UsersComponent implements OnInit, OnDestroy { } + ngOnDestroy() { + this.subscription.unsubscribe() + } + + getBrowserVersion() { this.auth.isChromeVerGreaterThan100.subscribe((isChromeVerGreaterThan100: boolean) => { @@ -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() {