mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
Merge pull request #878 from atmire/reomve-circular-dependencies-part-2
Remove circular dependencies part 2
This commit is contained in:
@@ -14,7 +14,7 @@ import { MetadataSchema } from '../metadata/metadata-schema.model';
|
||||
import { BrowseDefinition } from './browse-definition.model';
|
||||
import { DSpaceObject } from './dspace-object.model';
|
||||
import { getUnauthorizedRoute } from '../../app-routing-paths';
|
||||
import { getEndUserAgreementPath } from '../../info/info-routing.module';
|
||||
import { getEndUserAgreementPath } from '../../info/info-routing-paths';
|
||||
|
||||
/**
|
||||
* This file contains custom RxJS operators that can be used in multiple places
|
||||
|
16
src/app/info/info-routing-paths.ts
Normal file
16
src/app/info/info-routing-paths.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { getInfoModulePath } from '../app-routing-paths';
|
||||
|
||||
export const END_USER_AGREEMENT_PATH = 'end-user-agreement';
|
||||
export 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}`;
|
||||
}
|
@@ -1,24 +1,9 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { EndUserAgreementComponent } from './end-user-agreement/end-user-agreement.component';
|
||||
import { getInfoModulePath } from '../app-routing-paths';
|
||||
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}`;
|
||||
}
|
||||
import { PRIVACY_PATH, END_USER_AGREEMENT_PATH } from './info-routing-paths';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
|
Reference in New Issue
Block a user