mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 14:33:03 +00:00
angular cli
This commit is contained in:
@@ -6,7 +6,7 @@ import { MenuID, MenuItemType } from '../shared/menu/initial-menus-state';
|
||||
import { TextMenuItemModel } from '../shared/menu/menu-item/models/text.model';
|
||||
import { LinkMenuItemModel } from '../shared/menu/menu-item/models/link.model';
|
||||
import { HostWindowService } from '../shared/host-window.service';
|
||||
import { GLOBAL_CONFIG, GlobalConfig } from '../../config';
|
||||
import { environment } from '../../environments/environment';
|
||||
|
||||
/**
|
||||
* Component representing the public navbar
|
||||
@@ -24,8 +24,7 @@ export class NavbarComponent extends MenuComponent implements OnInit {
|
||||
*/
|
||||
menuID = MenuID.PUBLIC;
|
||||
|
||||
constructor(@Inject(GLOBAL_CONFIG) public config: GlobalConfig,
|
||||
protected menuService: MenuService,
|
||||
constructor(protected menuService: MenuService,
|
||||
protected injector: Injector,
|
||||
public windowService: HostWindowService
|
||||
) {
|
||||
@@ -80,7 +79,7 @@ export class NavbarComponent extends MenuComponent implements OnInit {
|
||||
},
|
||||
];
|
||||
// Read the different Browse-By types from config and add them to the browse menu
|
||||
const types = this.config.browseBy.types;
|
||||
const types = environment.browseBy.types;
|
||||
types.forEach((typeConfig) => {
|
||||
menuList.push({
|
||||
id: `browse_global_by_${typeConfig.id}`,
|
||||
|
Reference in New Issue
Block a user