Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Lanzilotto committed Nov 25, 2024
1 parent a6ba7ab commit 4f64501
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/app/components/sidebar/sidebar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1223,12 +1223,14 @@ export class SidebarComponent implements OnInit, AfterViewInit {
// this.logger.log('[SIDEBAR] NavigationEnd - EDIT_PROJECT_USER_ROUTE_IS_ACTIVE ', this.EDIT_PROJECT_USER_ROUTE_IS_ACTIVE);
}

if (event.url.indexOf('/messages') !== -1) {
// if (event.url.indexOf('/messages') !== -1) {

if (event.url.indexOf('/wsrequest') !== -1) {
this.CONV_DETAIL_ROUTE_IS_ACTIVE = true;
// this.logger.log('[SIDEBAR] NavigationEnd - CONV_DETAIL_ROUTE_IS_ACTIVE ', this.CONV_DETAIL_ROUTE_IS_ACTIVE);
console.log('[SIDEBAR] NavigationEnd - CONV_DETAIL_ROUTE_IS_ACTIVE ', this.CONV_DETAIL_ROUTE_IS_ACTIVE);
} else {
this.CONV_DETAIL_ROUTE_IS_ACTIVE = false;
// this.logger.log('[SIDEBAR] NavigationEnd - CONV_DETAIL_ROUTE_IS_ACTIVE ', this.CONV_DETAIL_ROUTE_IS_ACTIVE);
console.log('[SIDEBAR] NavigationEnd - CONV_DETAIL_ROUTE_IS_ACTIVE ', this.CONV_DETAIL_ROUTE_IS_ACTIVE);
}

if (event.url.indexOf('/wsrequests-demo') !== -1) {
Expand Down Expand Up @@ -1338,12 +1340,13 @@ export class SidebarComponent implements OnInit, AfterViewInit {
}


if (event.url.indexOf('/support') !== -1) {
// if (event.url.indexOf('/support') !== -1) {
if (event.url.substring(event.url.lastIndexOf('/') + 1) === 'support') {
this.SUPPORT_ROUTE_IS_ACTIVE = true;
this.logger.log('[SIDEBAR] NavigationEnd - SUPPORT_ROUTE_IS_ACTIVE; ', this.SUPPORT_ROUTE_IS_ACTIVE);
console.log('[SIDEBAR] NavigationEnd - SUPPORT_ROUTE_IS_ACTIVE; ', this.SUPPORT_ROUTE_IS_ACTIVE);
} else {
this.SUPPORT_ROUTE_IS_ACTIVE = false;
this.logger.log('[SIDEBAR] NavigationEnd - SUPPORT_ROUTE_IS_ACTIVE ', this.SUPPORT_ROUTE_IS_ACTIVE);
console.log('[SIDEBAR] NavigationEnd - SUPPORT_ROUTE_IS_ACTIVE ', this.SUPPORT_ROUTE_IS_ACTIVE);
}

if (event.url.indexOf('/home') !== -1) {
Expand Down

0 comments on commit 4f64501

Please sign in to comment.