Skip to content

Commit

Permalink
fix(advanced search link): Add route constant (#1238)
Browse files Browse the repository at this point in the history
  • Loading branch information
domsteinbach authored Oct 24, 2023
1 parent 8c5eec9 commit db3e22a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/dsp-app/src/app/project/project.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<!-- Description Section -->
<mat-divider></mat-divider>
<mat-list-item [ngClass]="{ 'active': listItemSelected === 'advanced-search'}" class="section-title" (click)="open('advanced-search')">
<mat-list-item [ngClass]="{ 'active': listItemSelected === 'advanced-search'}" class="section-title" (click)="open(advancedSearchRoute)">
<span matListItemTitle class="section-label">
<mat-icon class="sidenav-prefix-icon">search</mat-icon>
<p>Advanced Search</p>
Expand Down
3 changes: 2 additions & 1 deletion apps/dsp-app/src/app/project/project.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
import { Session, SessionService } from '@dasch-swiss/vre/shared/app-session';
import { Subscription } from 'rxjs';

type AvailableRoute = typeof RouteConstants.project | typeof RouteConstants.settings | typeof RouteConstants.dataModels;
type AvailableRoute = typeof RouteConstants.project | typeof RouteConstants.settings | typeof RouteConstants.dataModels | typeof RouteConstants.advancedSearch;

@Component({
selector: 'app-project',
Expand Down Expand Up @@ -75,6 +75,7 @@ export class ProjectComponent implements OnInit {
projectRoute: AvailableRoute = RouteConstants.project;
settingsRoute: AvailableRoute = RouteConstants.settings;
dataModelsRoute: AvailableRoute = RouteConstants.dataModels;
advancedSearchRoute: AvailableRoute = RouteConstants.advancedSearch;

constructor(
@Inject(DspApiConnectionToken)
Expand Down

0 comments on commit db3e22a

Please sign in to comment.