Skip to content

Commit

Permalink
Fixes the bug: "Knowledge Base" menu item does not change background …
Browse files Browse the repository at this point in the history
…when active
  • Loading branch information
Nicola Lanzilotto committed Oct 3, 2023
1 parent e82c488 commit 332a74b
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/app/components/settings-sidebar/settings-sidebar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,18 +545,22 @@ export class SettingsSidebarComponent implements OnInit {

if (this.route.indexOf('/hours') !== -1) {
this.OPERATING_HOURS_ROUTE_IS_ACTIVE = true
this.logger.log(
'[SETTING-SIDEBAR] - OPERATING_HOURS_ROUTE_IS_ACTIVE ',
this.OPERATING_HOURS_ROUTE_IS_ACTIVE,
)
this.logger.log('[SETTING-SIDEBAR] - OPERATING_HOURS_ROUTE_IS_ACTIVE ',this.OPERATING_HOURS_ROUTE_IS_ACTIVE)
} else {
this.OPERATING_HOURS_ROUTE_IS_ACTIVE = false
this.logger.log(
'[SETTING-SIDEBAR] - OPERATING_HOURS_ROUTE_IS_ACTIVE ',
this.OPERATING_HOURS_ROUTE_IS_ACTIVE,
)
this.logger.log('[SETTING-SIDEBAR] - OPERATING_HOURS_ROUTE_IS_ACTIVE ',this.OPERATING_HOURS_ROUTE_IS_ACTIVE)
}

if (this.route.indexOf('/knowledge-bases') !== -1) {
this.KNOWLEDGE_BASES_ROUTE_IS_ACTIVE = true
this.logger.log('[SETTING-SIDEBAR] - KNOWLEDGE_BASES_ROUTE_IS_ACTIVE ',this.KNOWLEDGE_BASES_ROUTE_IS_ACTIVE)
} else {
this.KNOWLEDGE_BASES_ROUTE_IS_ACTIVE = false
this.logger.log('[SETTING-SIDEBAR] - KNOWLEDGE_BASES_ROUTE_IS_ACTIVE ',this.KNOWLEDGE_BASES_ROUTE_IS_ACTIVE)
}



if (this.route.indexOf('/project-settings/') !== -1) {
this.PROJECT_SETTINGS_ROUTE_IS_ACTIVE = true
this.logger.log(
Expand Down

0 comments on commit 332a74b

Please sign in to comment.