Commit 77861e0a authored by benjaminParisel's avatar benjaminParisel Committed by GitHub

fix(modalContainer): See modalContainer asset on add in editor (#2700)

Covers [UID-34](https://bonitasoft.atlassian.net/browse/UID-34)
parent c40a6896
......@@ -146,7 +146,7 @@
$$propertiesTemplateUrl: 'js/editor/properties-panel/modal-container-properties-template.html',
$$parentContainerRow: parentRow,
triggerRemoved: whiteboardService.onRemoveModalContainer.bind(null, element),
triggerAdded: angular.noop
triggerAdded: whiteboardService.onAddModalContainer.bind(null, element),
});
service.wrapContainer({ id: 'pbContainer' }, element.container);
return component;
......
......@@ -22,6 +22,7 @@
onRemoveContainer: onRemoveContainer,
onRemoveTabsContainer: onRemoveTabsContainer,
onAddTabsContainer,
onAddModalContainer,
onRemoveTab: onRemoveTab,
onRemoveFormContainer: onRemoveFormContainer,
onRemoveModalContainer: onRemoveModalContainer,
......@@ -82,6 +83,10 @@
executeFunctionsForComponent(onWidgetAddFunctions, tabsContainer);
}
function onAddModalContainer(modalContainer) {
executeFunctionsForComponent(onWidgetAddFunctions, modalContainer);
}
function onRemoveTabsContainer(tabsContainer) {
tabsContainer.tabs.forEach(onRemoveTab);
executeFunctionsForComponent(onWidgetRemoveFunctions, tabsContainer);
......
Markdown is supported
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