Skip to content

Commit

Permalink
Added link to project view
Browse files Browse the repository at this point in the history
I made the text color same as the view button found on other lists
  • Loading branch information
pshahsancsoft committed Aug 20, 2024
1 parent 6f836d3 commit 35222f1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
@if (projectReportStatus$ | async; as psr) {
<div class="px-5">
<h1 class="font-rajdhani font-semibold text-3xl">
{{ psr.chargeCode }}: {{ psr.projectName }}
{{ psr.chargeCode }}:
<a
class="text-teal-200 hover:text-teal-300"
[routerLink]="['/projects', psr.projectId]"
target="_blank"
>{{ psr.projectName }}</a
>
</h1>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import {
switchMap,
} from 'rxjs';
import { GetPSRRecordV1 } from '../../models/PSR/get-PSR-v1';
import { ActivatedRoute } from '@angular/router';
import { ActivatedRoute, RouterLink } from '@angular/router';
import { HQService } from '../../services/hq.service';
import { Period } from '../../enums/period';

@Component({
selector: 'hq-psr-details-header',
standalone: true,
imports: [CommonModule],
imports: [CommonModule, RouterLink],
templateUrl: './psr-details-header.component.html',
})
export class PsrDetailsHeaderComponent {
Expand Down
9 changes: 8 additions & 1 deletion src/angular/hq/src/app/psr/psrlist/psrlist.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,14 @@ <h1 class="text-center py-4 font-bold">No matching records found</h1>
<td class="border-b border-black py-2">{{ report.startDate }}</td>
<td class="border-b border-black py-2">{{ report.endDate }}</td>
<td class="border-b border-black py-2">{{ report.clientName }}</td>
<td class="border-b border-black py-2">{{ report.projectName }}</td>
<td class="border-b border-black py-2">
<a
class="text-teal-200 hover:text-teal-300"
[routerLink]="['/projects', report.projectId]"
target="_blank"
>{{ report.projectName }}</a
>
</td>
<td class="border-b border-black py-2">
{{ report.projectManagerName }}
</td>
Expand Down

0 comments on commit 35222f1

Please sign in to comment.