mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
latest fixes
This commit is contained in:
@@ -2,6 +2,7 @@ import { Component, Inject, Input } from '@angular/core';
|
||||
import { LinkMenuItemModel } from './models/link.model';
|
||||
import { MenuItemType } from '../initial-menus-state';
|
||||
import { rendersMenuItemForType } from '../menu-item.decorator';
|
||||
import { GLOBAL_CONFIG, GlobalConfig } from '../../../../config';
|
||||
|
||||
/**
|
||||
* Component that renders a menu section of type LINK
|
||||
@@ -13,7 +14,11 @@ import { rendersMenuItemForType } from '../menu-item.decorator';
|
||||
@rendersMenuItemForType(MenuItemType.LINK)
|
||||
export class LinkMenuItemComponent {
|
||||
item: LinkMenuItemModel;
|
||||
constructor(@Inject('itemModelProvider') item: LinkMenuItemModel) {
|
||||
constructor(@Inject('itemModelProvider') item: LinkMenuItemModel, @Inject(GLOBAL_CONFIG) private EnvConfig: GlobalConfig) {
|
||||
this.item = item;
|
||||
}
|
||||
|
||||
getRouterLink() {
|
||||
return this.EnvConfig.ui.nameSpace + this.item.link;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user