Skip to content

Commit 18ed2a4

Browse files
authored
Merge pull request #570 from bcgov/oleks
Hotfix: 1)Wrong Upload date format (BL and listing). 2)Buttons for notice and takedown are shown on a listing details for CEU
2 parents fd3416b + 4a375f9 commit 18ed2a4

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

frontend/src/app/common/listing-upload-history-table/listing-upload-history-table.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ <h2>Platform Upload History</h2>
114114
<i class="pi pi-download" *ngIf="row.errors>0"></i></button>
115115
<ng-template #zero>{{0}}</ng-template>
116116
</td>
117-
<td>{{ row.updDtm |date }}</td>
117+
<td>{{ row.updDtm |date:'YYYY-MM-dd' }}</td>
118118
<td>{{ row.uploadedBy }}</td>
119119
</tr>
120120
</ng-template>

frontend/src/app/features/components/listings-table/listing-details/listing-details.component.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ <h2>Detailed Listing Information for</h2>
2121
</div>
2222
</div>
2323
<div class="column">
24-
<button pButton (click)="sendNoticeOfNonCompliance()" class="p-button-outlined ">
24+
<button *ngIf="!isCEU" pButton (click)="sendNoticeOfNonCompliance()" class="p-button-outlined ">
2525
<span class="nonc-icon"></span> Send Notice Of
2626
Non-Compliance </button>
27-
<button pButton (click)="sendTakedownRequest()" class="p-button-outlined"><span class="tdr-icon"></span> Send
27+
<button *ngIf="!isCEU" pButton (click)="sendTakedownRequest()" class="p-button-outlined"><span
28+
class="tdr-icon"></span> Send
2829
Takedown
2930
Request</button>
3031
</div>
@@ -36,7 +37,8 @@ <h2>Detailed Listing Information for</h2>
3637
<div class="property-info-container">
3738
<strong class="panel-header-text">Property Information</strong>
3839
<p-tag class="platform-report-month">
39-
<strong class="tag-text">Platform Report Month:</strong>{{listing.latestReportPeriodYm || '-'}}
40+
<strong class="tag-text">Platform Report Month:</strong>{{listing.latestReportPeriodYm
41+
|date:'YYYY-MM' || '-'}}
4042
</p-tag>
4143
</div>
4244
</ng-template>
@@ -267,9 +269,6 @@ <h2>Detailed Listing Information for</h2>
267269
<strong>We were unable to find a business licence that matched this listing in our system.</strong>
268270
</div>
269271
<ng-template #else_block>
270-
<div *ngIf="blInfo?.businessNm ||
271-
blInfo?.physicalRentalAddressTxt" class="spacer-hr"></div>
272-
273272
<div *ngIf="blInfo?.businessNm" class="row">
274273
<strong>Business Name:</strong> <span>{{blInfo.businessNm ||'-'}}</span>
275274
</div>

frontend/src/app/features/components/upload-business-license/upload-business-license.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<ng-template #pending><span class="state-pending">{{uploadHistory.status}}</span></ng-template>
7575
</td>
7676
<td>{{ uploadHistory.total }}</td>
77-
<td>{{ uploadHistory.updDtm | date }}</td>
77+
<td>{{ uploadHistory.updDtm |date:'YYYY-MM-dd' }}</td>
7878
<td>{{ uploadHistory.givenNm }} {{uploadHistory.familyNm}}</td>
7979
</tr>
8080
</ng-template>

0 commit comments

Comments
 (0)