mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
60113: context sensitive popup started from submission branch
This commit is contained in:
20
src/app/shared/menu/menu-item/onclick-menu-item.component.ts
Normal file
20
src/app/shared/menu/menu-item/onclick-menu-item.component.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { MenuItemType } from '../initial-menus-state';
|
||||
import { rendersMenuItemForType } from '../menu-item.decorator';
|
||||
import { GLOBAL_CONFIG, GlobalConfig } from '../../../../config';
|
||||
import { OnClickMenuItemModel } from './models/onclick.model';
|
||||
|
||||
/**
|
||||
* Component that renders a menu section of type LINK
|
||||
*/
|
||||
@Component({
|
||||
selector: 'ds-onclick-menu-item',
|
||||
templateUrl: './onclick-menu-item.component.html'
|
||||
})
|
||||
@rendersMenuItemForType(MenuItemType.ONCLICK)
|
||||
export class OnClickMenuItemComponent {
|
||||
item: OnClickMenuItemModel;
|
||||
constructor(@Inject('itemModelProvider') item: OnClickMenuItemModel, @Inject(GLOBAL_CONFIG) private EnvConfig: GlobalConfig) {
|
||||
this.item = item;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user