Skip to content

Commit b4188f1

Browse files
authored
Merge pull request #2357 from bcgov/bugfix/2266-QA-1
QA #1 fixes for public/portal doc
2 parents d2ca904 + 6568995 commit b4188f1

File tree

9 files changed

+15
-12
lines changed

9 files changed

+15
-12
lines changed

portal-frontend/src/app/features/applications/application-details/application-details.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ <h3>7. Optional Documents</h3>
350350
*ngFor="let file of otherFiles; let last = last"
351351
[file]="file"
352352
[isLast]="last"
353+
(fileClicked)="downloadFile(file.documentUuid)"
353354
>
354355
</app-optional-attachments-mobile-card>
355356
<app-no-data *ngIf="otherFiles.length === 0" [showRequired]="false"></app-no-data>

portal-frontend/src/app/features/applications/view-submission/alc-review/submission-documents/submission-documents.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h4>Application Documents</h4>
1212
<th mat-header-cell *matHeaderCellDef mat-sort-header sortActionDescription="Sort by name">Document Name</th>
1313
<td mat-cell *matCellDef="let element">
1414
<a class="desktop" routerLink="/document/{{ element.documentUuid }}" target="_blank">{{ element.fileName }}</a>
15-
<a class="mobile" (click)="downloadFile(element.uuid)">{{ element.fileName }}</a>
15+
<a class="mobile" (click)="downloadFile(element.documentUuid)">{{ element.fileName }}</a>
1616
</td>
1717
</ng-container>
1818

@@ -29,7 +29,7 @@ <h4>Application Documents</h4>
2929
<ng-container matColumnDef="actions">
3030
<th mat-header-cell *matHeaderCellDef>Actions</th>
3131
<td mat-cell *matCellDef="let element">
32-
<button mat-icon-button (click)="downloadFile(element.uuid)">
32+
<button mat-icon-button (click)="downloadFile(element.documentUuid)">
3333
<mat-icon>file_download</mat-icon>
3434
</button>
3535
</td>

portal-frontend/src/app/features/notice-of-intents/notice-of-intent-details/notice-of-intent-details.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ <h3>7. Optional Documents</h3>
239239
*ngFor="let file of otherFiles; let last = last"
240240
[file]="file"
241241
[isLast]="last"
242+
(fileClicked)="downloadFile(file.documentUuid)"
242243
>
243244
</app-optional-attachments-mobile-card>
244245
<app-no-data *ngIf="otherFiles.length === 0" [showRequired]="false"></app-no-data>

portal-frontend/src/app/features/notice-of-intents/view-submission/alc-review/submission-documents/submission-documents.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h4>Notice of Intent Documents</h4>
1212
<th mat-header-cell *matHeaderCellDef mat-sort-header sortActionDescription="Sort by name">Document Name</th>
1313
<td mat-cell *matCellDef="let element">
1414
<a class="desktop" routerLink="/document/{{ element.documentUuid }}" target="_blank">{{ element.fileName }}</a>
15-
<a class="mobile" (click)="downloadFile(element.uuid)">{{ element.fileName }}</a>
15+
<a class="mobile" (click)="downloadFile(element.documentUuid)">{{ element.fileName }}</a>
1616
</td>
1717
</ng-container>
1818

@@ -29,7 +29,7 @@ <h4>Notice of Intent Documents</h4>
2929
<ng-container matColumnDef="actions">
3030
<th mat-header-cell *matHeaderCellDef>Actions</th>
3131
<td mat-cell *matCellDef="let element">
32-
<button mat-icon-button (click)="downloadFile(element.uuid)">
32+
<button mat-icon-button (click)="downloadFile(element.documentUuid)">
3333
<mat-icon>file_download</mat-icon>
3434
</button>
3535
</td>

portal-frontend/src/app/features/notifications/notification-details/notification-details.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ <h3>6. Optional Attachments</h3>
153153
*ngFor="let file of otherFiles; let last = last"
154154
[file]="file"
155155
[isLast]="last"
156+
(fileClicked)="downloadFile(file.documentUuid)"
156157
>
157158
</app-optional-attachments-mobile-card>
158159
<app-no-data *ngIf="otherFiles.length === 0" [showRequired]="false"></app-no-data>

portal-frontend/src/app/features/notifications/view-submission/alc-review/submission-documents/submission-documents.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h4>SRW Documents</h4>
1212
<th mat-header-cell *matHeaderCellDef mat-sort-header sortActionDescription="Sort by name">Document Name</th>
1313
<td mat-cell *matCellDef="let element">
1414
<a class="desktop" routerLink="/document/{{ element.documentUuid }}" target="_blank">{{ element.fileName }}</a>
15-
<a class="mobile" (click)="downloadFile(element.uuid)">{{ element.fileName }}</a>
15+
<a class="mobile" (click)="downloadFile(element.documentUuid)">{{ element.fileName }}</a>
1616
</td>
1717
</ng-container>
1818

@@ -29,7 +29,7 @@ <h4>SRW Documents</h4>
2929
<ng-container matColumnDef="actions">
3030
<th mat-header-cell *matHeaderCellDef>Actions</th>
3131
<td mat-cell *matCellDef="let element">
32-
<button mat-icon-button (click)="downloadFile(element.uuid)">
32+
<button mat-icon-button (click)="downloadFile(element.documentUuid)">
3333
<mat-icon>file_download</mat-icon>
3434
</button>
3535
</td>

portal-frontend/src/app/features/public/application/alc-review/submission-documents/submission-documents.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h4>Application Documents</h4>
1111
<ng-container matColumnDef="fileName">
1212
<th mat-header-cell *matHeaderCellDef mat-sort-header sortActionDescription="Sort by name">Document Name</th>
1313
<td mat-cell *matCellDef="let element">
14-
<a class="mobile" (click)="downloadFile(element.uuid)">{{ element.fileName }}</a>
14+
<a class="mobile" (click)="downloadFile(element.documentUuid)">{{ element.fileName }}</a>
1515
<a class="desktop" routerLink="/document/{{ element.documentUuid }}" target="_blank">{{ element.fileName }}</a>
1616
</td>
1717
</ng-container>
@@ -29,7 +29,7 @@ <h4>Application Documents</h4>
2929
<ng-container matColumnDef="actions">
3030
<th mat-header-cell *matHeaderCellDef>Actions</th>
3131
<td mat-cell *matCellDef="let element">
32-
<button mat-icon-button (click)="downloadFile(element.uuid)">
32+
<button mat-icon-button (click)="downloadFile(element.documentUuid)">
3333
<mat-icon>file_download</mat-icon>
3434
</button>
3535
</td>

portal-frontend/src/app/features/public/notice-of-intent/alc-review/submission-documents/submission-documents.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h4>NOI Documents</h4>
1111
<ng-container matColumnDef="fileName">
1212
<th mat-header-cell *matHeaderCellDef mat-sort-header sortActionDescription="Sort by name">Document Name</th>
1313
<td mat-cell *matCellDef="let element">
14-
<a class="mobile" (click)="downloadFile(element.uuid)">{{ element.fileName }}</a>
14+
<a class="mobile" (click)="downloadFile(element.documentUuid)">{{ element.fileName }}</a>
1515
<a class="desktop" routerLink="/document/{{ element.documentUuid }}" target="_blank">{{ element.fileName }}</a>
1616
</td>
1717
</ng-container>
@@ -29,7 +29,7 @@ <h4>NOI Documents</h4>
2929
<ng-container matColumnDef="actions">
3030
<th mat-header-cell *matHeaderCellDef>Actions</th>
3131
<td mat-cell *matCellDef="let element">
32-
<button mat-icon-button (click)="downloadFile(element.uuid)">
32+
<button mat-icon-button (click)="downloadFile(element.documentUuid)">
3333
<mat-icon>file_download</mat-icon>
3434
</button>
3535
</td>

portal-frontend/src/app/features/public/notification/alc-review/submission-documents/submission-documents.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h4>Notification Documents</h4>
1111
<ng-container matColumnDef="fileName">
1212
<th mat-header-cell *matHeaderCellDef mat-sort-header sortActionDescription="Sort by name">Document Name</th>
1313
<td mat-cell *matCellDef="let element">
14-
<a class="mobile" (click)="downloadFile(element.uuid)">{{ element.fileName }}</a>
14+
<a class="mobile" (click)="downloadFile(element.documentUuid)">{{ element.fileName }}</a>
1515
<a class="desktop" routerLink="/document/{{ element.documentUuid }}" target="_blank">{{ element.fileName }}</a>
1616
</td>
1717
</ng-container>
@@ -29,7 +29,7 @@ <h4>Notification Documents</h4>
2929
<ng-container matColumnDef="actions">
3030
<th mat-header-cell *matHeaderCellDef>Actions</th>
3131
<td mat-cell *matCellDef="let element">
32-
<button mat-icon-button (click)="downloadFile(element.uuid)">
32+
<button mat-icon-button (click)="downloadFile(element.documentUuid)">
3333
<mat-icon>file_download</mat-icon>
3434
</button>
3535
</td>

0 commit comments

Comments
 (0)