68729: Edit Item Version History page + sidebar menu option - moving item-versions component to shared module

This commit is contained in:
Kristof De Langhe
2020-02-19 17:58:23 +01:00
parent 179fbd5276
commit 29ff18264c
12 changed files with 139 additions and 16 deletions

View File

@@ -7,6 +7,7 @@ import { ItemPageResolver } from './item-page.resolver';
import { URLCombiner } from '../core/url-combiner/url-combiner';
import { getItemModulePath } from '../app-routing.module';
import { AuthenticatedGuard } from '../core/auth/authenticated.guard';
import { getItemEditVersionHistoryPath } from './edit-item-page/edit-item-page.routing.module';
export function getItemPageRoute(itemId: string) {
return new URLCombiner(getItemModulePath(), itemId).toString();
@@ -14,8 +15,12 @@ export function getItemPageRoute(itemId: string) {
export function getItemEditPath(id: string) {
return new URLCombiner(getItemModulePath(),ITEM_EDIT_PATH.replace(/:id/, id)).toString()
}
export function getFullItemEditVersionHistoryPath(id: string) {
return new URLCombiner(getItemModulePath(),ITEM_EDIT_VERSION_HISTORY_PATH.replace(/:id/, id)).toString()
}
const ITEM_EDIT_PATH = ':id/edit';
const ITEM_EDIT_VERSION_HISTORY_PATH = `${ITEM_EDIT_PATH}/${getItemEditVersionHistoryPath()}`;
@NgModule({
imports: [