mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Fix 'No provider for ContextMenuService' errors when running tests
Refs #344
This commit is contained in:
@@ -19,7 +19,12 @@ import {
|
|||||||
Component,
|
Component,
|
||||||
OnInit
|
OnInit
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
import { AlfrescoPipeTranslate, AlfrescoTranslationService } from 'ng2-alfresco-core';
|
import {
|
||||||
|
AlfrescoPipeTranslate,
|
||||||
|
AlfrescoTranslationService,
|
||||||
|
CONTEXT_MENU_DIRECTIVES,
|
||||||
|
CONTEXT_MENU_PROVIDERS
|
||||||
|
} from 'ng2-alfresco-core';
|
||||||
import {
|
import {
|
||||||
ALFRESCO_DATATABLE_DIRECTIVES,
|
ALFRESCO_DATATABLE_DIRECTIVES,
|
||||||
ObjectDataTableAdapter
|
ObjectDataTableAdapter
|
||||||
@@ -40,8 +45,9 @@ declare let __moduleName: string;
|
|||||||
`
|
`
|
||||||
],
|
],
|
||||||
templateUrl: './ng2-activiti-processlist.component.html',
|
templateUrl: './ng2-activiti-processlist.component.html',
|
||||||
directives: [ ALFRESCO_DATATABLE_DIRECTIVES ],
|
directives: [ ALFRESCO_DATATABLE_DIRECTIVES, CONTEXT_MENU_DIRECTIVES ],
|
||||||
pipes: [ AlfrescoPipeTranslate ]
|
pipes: [ AlfrescoPipeTranslate ],
|
||||||
|
providers: [ CONTEXT_MENU_PROVIDERS ]
|
||||||
})
|
})
|
||||||
export class Ng2ActivitiProcesslistComponent implements OnInit {
|
export class Ng2ActivitiProcesslistComponent implements OnInit {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user