angular cli

This commit is contained in:
lotte
2020-03-18 16:03:40 +01:00
parent 41969ec3b1
commit 8bf241c182
503 changed files with 5303 additions and 9574 deletions

View File

@@ -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;
}