Skip to content
Snippets Groups Projects
Commit 7cf2d9ac authored by Sandro Weber's avatar Sandro Weber
Browse files

Merged in NRRPLT-8086-widget-drag-drop (pull request #313)

[NRRPLT-8086] fixed

* [NRRPLT-8086] fixed

Approved-by: Manos Angelidis
Approved-by: Antoine Detailleur
parent 8913da3c
No related branches found
No related tags found
No related merge requests found
......@@ -178,10 +178,6 @@
toolConfig: toolConfig
});
}
this.isLayoutInitialised().then(() => {
this.layout.createDragSource(element, toolConfig);
});
}
openTool(toolConfig) {
......
......@@ -131,10 +131,13 @@ describe('Service: GoldenLayoutService', function() {
let mockElement = {},
mockToolConfig = {};
goldenLayoutService.createDragSource(mockElement, mockToolConfig);
expect(mockLayout.createDragSource).toHaveBeenCalledWith(
mockElement,
mockToolConfig
);
expect(
goldenLayoutService.dragSources.some(
dragSource =>
dragSource.element === mockElement &&
dragSource.toolConfig === mockToolConfig
)
).toBe(true);
});
it(' - openTool', function() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment