From 26996ec0f067d85f7ca45e38b93cb4b57687e549 Mon Sep 17 00:00:00 2001 From: Severin Beauvais Date: Fri, 16 Nov 2018 11:30:34 -0800 Subject: [PATCH] PRC-693: model cleanup --- .../application-list.component.html | 46 +++++------ .../review-comments.component.ts | 5 -- src/app/models/application.ts | 78 +++++++++---------- src/app/models/comment.ts | 27 ++++--- src/app/models/commentperiod.ts | 35 +++------ src/app/models/decision.ts | 3 +- src/app/models/document.ts | 1 - src/app/models/feature.ts | 74 +++++++++--------- src/app/models/search.ts | 10 ++- src/app/models/user.ts | 12 +-- src/app/services/api.ts | 14 ++-- src/app/services/application.service.spec.ts | 10 +-- src/app/services/application.service.ts | 3 +- src/app/services/commentperiod.service.ts | 5 -- src/app/services/search.service.ts | 2 - 15 files changed, 147 insertions(+), 178 deletions(-) diff --git a/src/app/applications/application-list/application-list.component.html b/src/app/applications/application-list/application-list.component.html index 8d690274..472b6933 100644 --- a/src/app/applications/application-list/application-list.component.html +++ b/src/app/applications/application-list/application-list.component.html @@ -46,68 +46,68 @@

Crown Lands Applications in British Columbia

- - + + -
+
  • Comment Period Status: - {{item.cpStatus}} + {{app.cpStatus}}
  • -
  • +
  • Comment Period Dates: - {{item.currentPeriod.startDate | date:'mediumDate'}} to {{item.currentPeriod.endDate | date:'mediumDate'}} - -  ({{item.currentPeriod['daysRemaining'] + (item.currentPeriod['daysRemaining'] === 1 ? ' day ' : ' days ') + 'remaining'}}) + {{app.currentPeriod.startDate | date:'mediumDate'}} to {{app.currentPeriod.endDate | date:'mediumDate'}} + +  ({{app.currentPeriod['daysRemaining'] + (app.currentPeriod['daysRemaining'] === 1 ? ' day ' : ' days ') + 'remaining'}})
  • -
  • +
  • Comments Received: - {{item['numComments']}} + {{app['numComments']}}
  • Location: - {{item.location || '-'}} + {{app.location || '-'}}
  • Description: - +