-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#379 network node filter with signals
- Loading branch information
Showing
8 changed files
with
93 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
frontend/src/app/analysis/network/nodes/components/network-nodes-sidebar.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
import { AsyncPipe } from '@angular/common'; | ||
import { inject } from '@angular/core'; | ||
import { ChangeDetectionStrategy } from '@angular/core'; | ||
import { Component } from '@angular/core'; | ||
import { FilterComponent } from '@app/analysis/components/filter'; | ||
import { SidebarComponent } from '@app/components/shared/sidebar'; | ||
import { NetworkNodesService } from './network-nodes.service'; | ||
import { NetworkNodesPageService } from '../network-nodes-page.service'; | ||
|
||
@Component({ | ||
selector: 'kpn-network-nodes-sidebar', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
template: ` | ||
<kpn-sidebar> | ||
<kpn-filter [filterOptions]="networkNodesService.filterOptions$ | async" /> | ||
<kpn-filter [filterOptions]="service.filterOptions()" /> | ||
</kpn-sidebar> | ||
`, | ||
standalone: true, | ||
imports: [SidebarComponent, FilterComponent, AsyncPipe], | ||
imports: [SidebarComponent, FilterComponent], | ||
}) | ||
export class NetworkNodesSidebarComponent { | ||
protected readonly networkNodesService = inject(NetworkNodesService); | ||
protected readonly service = inject(NetworkNodesPageService); | ||
} |
15 changes: 0 additions & 15 deletions
15
frontend/src/app/analysis/network/nodes/components/network-nodes.service.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.