Skip to content

Commit

Permalink
Merge pull request #29 from samply/feature/exporter-ui_3
Browse files Browse the repository at this point in the history
fix routerlink in exporter
  • Loading branch information
djuarezgf authored Dec 13, 2023
2 parents 863fc20 + d97a750 commit c2c2b87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/embedded/exporter/exporter.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ <h2 i18n>Exporter Anfragen</h2>

<ng-container matColumnDef="executions">
<th mat-header-cell class="table-link-column" *matHeaderCellDef i18n>Ausführungen</th>
<td mat-cell class="table-link-column" *matCellDef="let element" > <a [routerLink]="['/' + executionLink, element.id]"><i class="link-icon bi bi-box-arrow-in-right"></i></a> </td>
<td mat-cell class="table-link-column" *matCellDef="let element" > <a routerLink="{{getRouterLink(element.id)}}"><i class="link-icon bi bi-box-arrow-in-right"></i></a> </td>
</ng-container>

<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
Expand Down
5 changes: 4 additions & 1 deletion src/app/embedded/exporter/exporter.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {QBResponse, Templates} from "../quality-report/quality-report.component"
import {environment} from "../../../environments/environment";
import {SelectionModel} from "@angular/cdk/collections";
import {TeilerAuthService} from "../../security/teiler-auth.service";
import {TeilerService} from "../../teiler/teiler.service";
import {createRouterLinkForBase} from "../../route/route-utils";

export interface ExporterQueries {
id: number;
Expand Down Expand Up @@ -383,4 +383,7 @@ export class ExporterComponent implements OnInit, OnDestroy {
cancelEdit(): void {
this.editModus = false;
}
getRouterLink(id: string): string {
return '/' + createRouterLinkForBase(this.executionLink + '/' + id);
}
}

0 comments on commit c2c2b87

Please sign in to comment.