mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
5590: Item move component
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
import { ItemPageResolver } from '../item-page.resolver';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { EditItemPageComponent } from './edit-item-page.component';
|
||||
import {ItemPageResolver} from '../item-page.resolver';
|
||||
import {NgModule} from '@angular/core';
|
||||
import {RouterModule} from '@angular/router';
|
||||
import {EditItemPageComponent} from './edit-item-page.component';
|
||||
import {ItemMoveComponent} from './item-move/item-move.component';
|
||||
import {URLCombiner} from '../../core/url-combiner/url-combiner';
|
||||
import {getItemEditPath} from '../item-page-routing.module';
|
||||
|
||||
const ITEM_EDIT_MOVE_PATH = 'move';
|
||||
|
||||
export function getItemEditMovePath(id: string) {
|
||||
return new URLCombiner(getItemEditPath(id), ITEM_EDIT_MOVE_PATH);
|
||||
}
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
@@ -12,6 +21,13 @@ import { EditItemPageComponent } from './edit-item-page.component';
|
||||
resolve: {
|
||||
item: ItemPageResolver
|
||||
}
|
||||
},
|
||||
{
|
||||
path: ITEM_EDIT_MOVE_PATH,
|
||||
component: ItemMoveComponent,
|
||||
resolve: {
|
||||
item: ItemPageResolver
|
||||
}
|
||||
}
|
||||
])
|
||||
],
|
||||
|
Reference in New Issue
Block a user