Skip to content

Commit 12413f0

Browse files
authored
Merge pull request #721 from bcgov/oleks
DSS-877: Update web links from takedown form. DSS-639 [Enhancement] Listings Search UI - Need better way to clear search criteria and return to listings
2 parents d542b23 + dc5a754 commit 12413f0

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

frontend/src/app/app.routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const routes: Routes = [
6969
data: { permissions: [takedown_action] }
7070
},
7171
{
72-
path: 'delisting-request',
72+
path: 'takedown-request',
7373
canActivate: [approvedUserGuard, activeUserGuard, hasPermissionsGuard, areTermsAceptedGuard],
7474
component: DelistingRequestComponent,
7575
data: { permissions: [takedown_action] }

frontend/src/app/common/services/dashboard.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export class DashboardService {
200200
buttonIcon: '',
201201
buttonText: 'Send Takedown Letter',
202202
description: 'Send a request to an STR platform to remove a non-compliant listing. A Takedown Request can be sent within a period of 5 to 90 days after a Notice of Non-Compliance is delivered.',
203-
route: '/delisting-request',
203+
route: '/takedown-request',
204204
title: 'Send Takedown Request',
205205
boxId: 'sendTakedownLetter_box',
206206
buttonId: 'sendTakedownLetter_btn',

frontend/src/app/common/services/top-menu.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class TopMenuService {
7171
{
7272
accessPermission: takedown_action,
7373
buttonId: 'sendTakedownLetter_mi_btn',
74-
route: '/delisting-request',
74+
route: '/takedown-request',
7575
description: 'Send a request to an STR platform to remove a non-compliant listing. A Takedown Request can be sent within a period of 5 to 90 days after a Notice of Non-Compliance is delivered.',
7676
title: 'Send Takedown Request',
7777
folderName: 'Forms',

frontend/src/app/features/components/listings-table/listings-table.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,15 @@ export class ListingsTableComponent implements OnInit {
224224

225225
onClearSearchBox(): void {
226226
this.searchTerm = '';
227+
this.getListings(0);
227228
}
228229

229230
onClearFilters(): void {
230231
this.filterPersistenceService.listingFilter = { byLocation: { isBusinessLicenceRequired: '', isPrincipalResidenceRequired: '' }, community: 0, byStatus: {} };
231232
this.initFilters();
232233
this.isFilterOpened = false;
233234
this.currentPage.pageNumber = 1;
235+
this.getListings(0);
234236
this.onSearch();
235237
}
236238

0 commit comments

Comments
 (0)