Skip to content

Commit

Permalink
fixed searching pipelines and loading flows; fix #SNRGY-3012, #SNRGY-…
Browse files Browse the repository at this point in the history
…2998
  • Loading branch information
hahahannes committed Dec 1, 2023
1 parent ddff1a0 commit 3d40ab3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/modules/data/flow-repo/flow-repo.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
</mat-icon>
</div>
<div class="truncate footer-item-subtitle" fxLayout="column">
<div *ngIf="costService.userMayGetFlowCostEstimations()">
<div *ngIf="costService.userMayGetFlowCostEstimations() && flowEstimations.length>0">
<div *ngIf=" flowEstimations[i].max > 0" matTooltipClass="multiline-tooltip" matTooltip="Median: {{flowEstimations[i].median | currency:'EUR'}}; Mean: {{flowEstimations[i].mean | currency:'EUR'}}">
{{flowEstimations[i].min | currency:'EUR'}} - {{flowEstimations[i].max |
currency:'EUR'}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export class PipelineRegistryComponent implements OnInit, AfterViewInit {

initSearch() {
this.searchSub = this.searchbarService.currentSearchText.subscribe((searchText: string) => {
this.pipelineRegistryService.getPipelines('createdat:desc').subscribe((resp: PipelineModel[]) => {
var order = this.sortBy + ':' + this.sortDirection
this.pipelineRegistryService.getPipelines(order).subscribe((resp: PipelineModel[]) => {
if(searchText != ""){
resp = resp.filter(pipeline => (pipeline.name.search(searchText) != -1))
}
Expand Down

0 comments on commit 3d40ab3

Please sign in to comment.