diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 1312681..1df2a75 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -16,9 +16,10 @@ import { ProfileComponent } from './pages/profile/profile.component'; import { PersonsComponent } from './pages/tables/persons/persons.component'; import { ContactInformationComponent } from './pages/tables/contact-information/contact-information.component'; import { OrganisationsComponent } from './pages/tables/organisations/organisations.component'; -import { ProviderComponent } from './pages/tables/provider/provider.component'; +import { ProvidersComponent } from './pages/tables/providers/providers.component'; import { PersonComponent } from './pages/dataPages/person/person.component'; import { OrganisationComponent } from './pages/dataPages/organisation/organisation.component'; +import { ProviderComponent } from './pages/dataPages/provider/provider.component'; const routes: Routes = [ { path: 'login', component: LoginComponent }, @@ -35,9 +36,10 @@ const routes: Routes = [ { path: 'table/persons', component: PersonsComponent, canActivate: [AuthGuard] }, { path: 'table/contactInformation', component: ContactInformationComponent, canActivate: [AuthGuard] }, { path: 'table/organisations', component: OrganisationsComponent, canActivate: [AuthGuard] }, - { path: 'table/providers', component: ProviderComponent, canActivate: [AuthGuard] }, + { path: 'table/providers', component: ProvidersComponent, canActivate: [AuthGuard] }, { path: 'lendingStation/:id', component: LendingStationComponent, canActivate: [AuthGuard] }, { path: 'person/:id', component: PersonComponent, canActivate: [AuthGuard] }, + { path: 'provider/:id', component: ProviderComponent, canActivate: [AuthGuard] }, { path: 'organisation/:id', component: OrganisationComponent, canActivate: [AuthGuard] }, { path: '', redirectTo: 'tableOverview', pathMatch: 'full' }, { path: 'table', redirectTo: 'tableOverview', pathMatch: 'full' }, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index a51f0f7..38572fd 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -71,9 +71,10 @@ import { HttpLinkModule } from 'apollo-angular-link-http'; import { PersonsComponent } from './pages/tables/persons/persons.component'; import { ContactInformationComponent } from './pages/tables/contact-information/contact-information.component'; import { OrganisationsComponent } from './pages/tables/organisations/organisations.component'; -import { ProviderComponent } from './pages/tables/provider/provider.component'; +import { ProvidersComponent } from './pages/tables/providers/providers.component'; import { OrganisationComponent } from './pages/dataPages/organisation/organisation.component'; import { PersonComponent } from './pages/dataPages/person/person.component'; +import { ProviderComponent } from './pages/dataPages/provider/provider.component'; @@ -109,9 +110,10 @@ import { PersonComponent } from './pages/dataPages/person/person.component'; PersonsComponent, ContactInformationComponent, OrganisationsComponent, - ProviderComponent, + ProvidersComponent, OrganisationComponent, - PersonComponent + PersonComponent, + ProviderComponent ], imports: [ BrowserModule, diff --git a/src/app/components/data-page/data-page.component.html b/src/app/components/data-page/data-page.component.html index b2e8db9..ece11b1 100644 --- a/src/app/components/data-page/data-page.component.html +++ b/src/app/components/data-page/data-page.component.html @@ -9,11 +9,17 @@

- {{ data[headlineDataPath] }} + {{ getHeadline !== undefined ? getHeadline(data) : data[headlineDataPath] }} {{ headlineIconName }}

- +

{{ object.title }}