diff --git a/frontend/src/app/pages/source-detail/source-detail.component.html b/frontend/src/app/pages/source-detail/source-detail.component.html index 1178bcf4..5148026a 100644 --- a/frontend/src/app/pages/source-detail/source-detail.component.html +++ b/frontend/src/app/pages/source-detail/source-detail.component.html @@ -2,7 +2,7 @@
@@ -14,7 +14,7 @@ Details
-

Medical Sources

+

{{selectedResourceType}}

Insurance Companies

The following medical insurance companies have API's which Fasten can use to retrieve your medical history. @@ -31,36 +31,12 @@ - + 1 Tiger Nixon System Architect $320,800 - - 2 - Garrett Winters - Accountant - $170,750 - - - 3 - Ashton Cox - Junior Technical Author - $86,000 - - - 4 - Cedric Kelly - Senior Javascript Developer - $433,060 - - - 5 - Airi Satou - Accountant - $162,700 -

diff --git a/frontend/src/app/pages/source-detail/source-detail.component.ts b/frontend/src/app/pages/source-detail/source-detail.component.ts index 30c203a8..2f50726a 100644 --- a/frontend/src/app/pages/source-detail/source-detail.component.ts +++ b/frontend/src/app/pages/source-detail/source-detail.component.ts @@ -12,6 +12,8 @@ import {FastenApiService} from '../../services/fasten-api.service'; export class SourceDetailComponent implements OnInit { selectedSource: Source = null + selectedResourceType: string = null + selectedResources: any[] = [] resourcesGroupedByType: { [name: string]: any[] } = {} @@ -41,4 +43,8 @@ export class SourceDetailComponent implements OnInit { }) } + selectResourceType(resourceType: string) { + this.selectedResourceType = resourceType + this.selectedResources = this.resourcesGroupedByType[resourceType] + } }