mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 19:43:04 +00:00
96252: Move MyDSpace components out of SharedModule
Also move ds-metadata-field-wrapper to SharedModule so it can be reused in detail view without importing ItemSharedModule
This commit is contained in:
59
src/app/shared/mydspace-actions/mydspace-actions.module.ts
Normal file
59
src/app/shared/mydspace-actions/mydspace-actions.module.ts
Normal file
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* The contents of this file are subject to the license and copyright
|
||||
* detailed in the LICENSE and NOTICE files at the root of the source
|
||||
* tree and available online at
|
||||
*
|
||||
* http://www.dspace.org/license/
|
||||
*/
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { SharedModule } from '../shared.module';
|
||||
import { ClaimedTaskActionsApproveComponent } from './claimed-task/approve/claimed-task-actions-approve.component';
|
||||
import { ClaimedTaskActionsRejectComponent } from './claimed-task/reject/claimed-task-actions-reject.component';
|
||||
import { ClaimedTaskActionsReturnToPoolComponent } from './claimed-task/return-to-pool/claimed-task-actions-return-to-pool.component';
|
||||
import { ClaimedTaskActionsEditMetadataComponent } from './claimed-task/edit-metadata/claimed-task-actions-edit-metadata.component';
|
||||
import { ClaimedTaskActionsComponent } from './claimed-task/claimed-task-actions.component';
|
||||
import { ClaimedTaskActionsLoaderComponent } from './claimed-task/switcher/claimed-task-actions-loader.component';
|
||||
import { ItemActionsComponent } from './item/item-actions.component';
|
||||
import { PoolTaskActionsComponent } from './pool-task/pool-task-actions.component';
|
||||
import { WorkflowitemActionsComponent } from './workflowitem/workflowitem-actions.component';
|
||||
import { WorkspaceitemActionsComponent } from './workspaceitem/workspaceitem-actions.component';
|
||||
|
||||
const ENTRY_COMPONENTS = [
|
||||
ClaimedTaskActionsApproveComponent,
|
||||
ClaimedTaskActionsRejectComponent,
|
||||
ClaimedTaskActionsReturnToPoolComponent,
|
||||
ClaimedTaskActionsEditMetadataComponent,
|
||||
];
|
||||
|
||||
const DECLARATIONS = [
|
||||
...ENTRY_COMPONENTS,
|
||||
ClaimedTaskActionsComponent,
|
||||
ClaimedTaskActionsLoaderComponent,
|
||||
ItemActionsComponent,
|
||||
PoolTaskActionsComponent,
|
||||
WorkflowitemActionsComponent,
|
||||
WorkspaceitemActionsComponent,
|
||||
];
|
||||
|
||||
/**
|
||||
* This module contains Item actions used in MyDSpace
|
||||
*/
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
SharedModule,
|
||||
],
|
||||
declarations: [
|
||||
...DECLARATIONS,
|
||||
],
|
||||
providers: [
|
||||
...ENTRY_COMPONENTS,
|
||||
],
|
||||
exports: [
|
||||
...DECLARATIONS,
|
||||
],
|
||||
})
|
||||
export class MyDSpaceActionsModule {
|
||||
|
||||
}
|
Reference in New Issue
Block a user