mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
prepare dashboard config
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<p>admin-notify-dashboard works!</p>
|
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { AdminNotifyDashboardComponent } from './admin-notify-dashboard.component';
|
||||
|
||||
describe('AdminNotifyDashboardComponent', () => {
|
||||
let component: AdminNotifyDashboardComponent;
|
||||
let fixture: ComponentFixture<AdminNotifyDashboardComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ AdminNotifyDashboardComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(AdminNotifyDashboardComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
@@ -0,0 +1,10 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-admin-notify-dashboard',
|
||||
templateUrl: './admin-notify-dashboard.component.html',
|
||||
styleUrls: ['./admin-notify-dashboard.component.scss']
|
||||
})
|
||||
export class AdminNotifyDashboardComponent {
|
||||
|
||||
}
|
@@ -12,6 +12,7 @@ import { ExpandableAdminSidebarSectionComponent } from './admin-sidebar/expandab
|
||||
import { BatchImportPageComponent } from './admin-import-batch-page/batch-import-page.component';
|
||||
import { UiSwitchModule } from 'ngx-ui-switch';
|
||||
import { UploadModule } from '../shared/upload/upload.module';
|
||||
import { AdminNotifyDashboardComponent } from './admin-notify-dashboard/admin-notify-dashboard.component';
|
||||
|
||||
const ENTRY_COMPONENTS = [
|
||||
// put only entry components that use custom decorator
|
||||
@@ -34,7 +35,8 @@ const ENTRY_COMPONENTS = [
|
||||
declarations: [
|
||||
AdminCurationTasksComponent,
|
||||
MetadataImportPageComponent,
|
||||
BatchImportPageComponent
|
||||
BatchImportPageComponent,
|
||||
AdminNotifyDashboardComponent
|
||||
]
|
||||
})
|
||||
export class AdminModule {
|
||||
|
@@ -679,6 +679,18 @@ export class MenuResolver implements Resolve<boolean> {
|
||||
icon: 'exclamation-circle',
|
||||
index: 12
|
||||
},
|
||||
{
|
||||
id: 'notify_dashboard',
|
||||
active: false,
|
||||
visible: authorized,
|
||||
model: {
|
||||
type: MenuItemType.LINK,
|
||||
text: 'menu.section.notify-dasboard',
|
||||
link: '/admin/notify-dasboard'
|
||||
} as LinkMenuItemModel,
|
||||
icon: 'gauge',
|
||||
index: 13
|
||||
},
|
||||
];
|
||||
|
||||
menuList.forEach((menuSection) => this.menuService.addSection(MenuID.ADMIN, Object.assign(menuSection, {
|
||||
|
@@ -3075,6 +3075,8 @@
|
||||
|
||||
"menu.section.icon.export": "Export menu section",
|
||||
|
||||
"menu.section.notify-dasboard": "Notify Dashboard",
|
||||
|
||||
"menu.section.icon.find": "Find menu section",
|
||||
|
||||
"menu.section.icon.health": "Health check menu section",
|
||||
|
Reference in New Issue
Block a user