From 0745baef2affc287df1a1f2ee791593caf84d114 Mon Sep 17 00:00:00 2001 From: Aaron Russell Date: Tue, 2 Jun 2020 10:25:15 +0100 Subject: [PATCH 1/2] Updated pending workplaces to be an array of workplaces --- .../view-my-workplaces/view-my-workplaces.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/features/workplace/view-my-workplaces/view-my-workplaces.component.ts b/src/app/features/workplace/view-my-workplaces/view-my-workplaces.component.ts index 19d09cbad8..a15589f061 100644 --- a/src/app/features/workplace/view-my-workplaces/view-my-workplaces.component.ts +++ b/src/app/features/workplace/view-my-workplaces/view-my-workplaces.component.ts @@ -23,7 +23,7 @@ export class ViewMyWorkplacesComponent implements OnInit, OnDestroy { public serverErrorsMap: ErrorDefinition[] = []; public workplaces: Workplace[] = []; public workplacesCount = 0; - public pendingWorkplaces: any; + public pendingWorkplaces: Workplace[] = []; constructor( private breadcrumbService: BreadcrumbService, From dc1bfff13ac16867f578b1f4255c16b85710fcc1 Mon Sep 17 00:00:00 2001 From: Aaron Russell Date: Tue, 2 Jun 2020 10:25:56 +0100 Subject: [PATCH 2/2] Switched to show pending messages if there are pending workplaces --- .../view-my-workplaces.component.html | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/app/features/workplace/view-my-workplaces/view-my-workplaces.component.html b/src/app/features/workplace/view-my-workplaces/view-my-workplaces.component.html index 48691bb1cd..dccda3699b 100644 --- a/src/app/features/workplace/view-my-workplaces/view-my-workplaces.component.html +++ b/src/app/features/workplace/view-my-workplaces/view-my-workplaces.component.html @@ -18,13 +18,15 @@

- -
    +
      +
    • -
      - Your application for {{workplaces.name}} is being reviewed by Skills for Care. Pending -
      +
      + Your application for {{workplaces.name}} is being reviewed by Skills for Care. Pending +
    • +
      +
    • >
    • -
    - - - -

    There are no workplaces.

    -
    + +
+

There are no workplaces.