mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
angular cli
This commit is contained in:
@@ -2,8 +2,8 @@ import { Component, Inject, Input, OnInit } 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';
|
||||
import { isNotEmpty } from '../../empty.util';
|
||||
import { environment } from '../../../../environments/environment';
|
||||
|
||||
/**
|
||||
* Component that renders a menu section of type LINK
|
||||
@@ -16,7 +16,7 @@ import { isNotEmpty } from '../../empty.util';
|
||||
export class LinkMenuItemComponent implements OnInit {
|
||||
item: LinkMenuItemModel;
|
||||
hasLink: boolean;
|
||||
constructor(@Inject('itemModelProvider') item: LinkMenuItemModel, @Inject(GLOBAL_CONFIG) private EnvConfig: GlobalConfig) {
|
||||
constructor(@Inject('itemModelProvider') item: LinkMenuItemModel) {
|
||||
this.item = item;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ export class LinkMenuItemComponent implements OnInit {
|
||||
|
||||
getRouterLink() {
|
||||
if (this.hasLink) {
|
||||
return this.EnvConfig.ui.nameSpace + this.item.link;
|
||||
return environment.ui.nameSpace + this.item.link;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
Reference in New Issue
Block a user