Skip to content

Commit

Permalink
Disabled explore button before login flow (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
NandiniAV authored Jul 5, 2022
1 parent fdcb4c9 commit e515f37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="flex flex-1 flex-column">
<div class="flex flex-1 flex-column">
<div class="flex flex-1 flex-wrap margin-bottom-xs margin-top-xs" role="menubar">
<a class="flex cursor-pointer simple-hubs-link margin-left-0" (click)="toggleVisibility()" [class.disabled]="router.url === '/public/contact'"
<a class="flex cursor-pointer simple-hubs-link margin-left-0" (click)="toggleVisibility()" [class.disabled]="!loggedinUser"
href="javascript:void(0)" role="menuitem" accesskey="H" i18n-aria-label i18n-aria-label >
<mat-icon class="margin-right-xs ws-mat-default-text">menu</mat-icon>
<span class="margin-auto ws-mat-default-text mat-subheading-2">EXPLORE</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export class BtnPageBackComponent extends WidgetBaseComponent
visible = false
enablePeopleSearch = true
environment!: any
loggedinUser = false
hubsList!: NsInstanceConfig.IHubs[]
constructor(
private btnBackSvc: BtnPageBackService,
Expand All @@ -57,7 +58,9 @@ export class BtnPageBackComponent extends WidgetBaseComponent
this.hubsList = (instanceConfig.hubs || []).filter(i => i.active)
}
this.presentUrl = this.router.url

if (this.configSvc.userProfile) {
this.loggedinUser = true
}
}

get backUrl(): { fragment?: string; routeUrl: string; queryParams: any } {
Expand Down

0 comments on commit e515f37

Please sign in to comment.