60113: context sensitive popup started from submission branch

This commit is contained in:
lotte
2019-02-20 16:21:03 +01:00
parent cebea75605
commit bc305e2aa6
13 changed files with 246 additions and 12 deletions

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