mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 21:43:04 +00:00
72541: Renamed end-user-agreement-guard and -service; Add metadata on registry; privacy statement component
This commit is contained in:
@@ -3,13 +3,19 @@ import { RouterModule } from '@angular/router';
|
||||
import { EndUserAgreementComponent } from './end-user-agreement/end-user-agreement.component';
|
||||
import { getInfoModulePath } from '../app-routing.module';
|
||||
import { I18nBreadcrumbResolver } from '../core/breadcrumbs/i18n-breadcrumb.resolver';
|
||||
import { PrivacyComponent } from './privacy/privacy.component';
|
||||
|
||||
const END_USER_AGREEMENT_PATH = 'end-user-agreement';
|
||||
const PRIVACY_PATH = 'privacy';
|
||||
|
||||
export function getEndUserAgreementPath() {
|
||||
return getSubPath(END_USER_AGREEMENT_PATH);
|
||||
}
|
||||
|
||||
export function getPrivacyPath() {
|
||||
return getSubPath(PRIVACY_PATH);
|
||||
}
|
||||
|
||||
function getSubPath(path: string) {
|
||||
return `${getInfoModulePath()}/${path}`;
|
||||
}
|
||||
@@ -23,6 +29,14 @@ function getSubPath(path: string) {
|
||||
resolve: { breadcrumb: I18nBreadcrumbResolver },
|
||||
data: { title: 'info.end-user-agreement.title', breadcrumbKey: 'info.end-user-agreement' }
|
||||
}
|
||||
]),
|
||||
RouterModule.forChild([
|
||||
{
|
||||
path: PRIVACY_PATH,
|
||||
component: PrivacyComponent,
|
||||
resolve: { breadcrumb: I18nBreadcrumbResolver },
|
||||
data: { title: 'info.privacy.title', breadcrumbKey: 'info.privacy' }
|
||||
}
|
||||
])
|
||||
]
|
||||
})
|
||||
|
Reference in New Issue
Block a user