AWV-3: Transforming the CINE inputs in form components

This commit is contained in:
Bruno Alves de Faria committed 2016-09-03 18:16:57 -03:00
1 parent 176b503c5a
commit 20b49d5036
15 files changed
+145 -38

No files matched your search

+3 -3
View File
@@ -31,12 +31,12 @@ OHIF.blaze.getParentView = (view, parentViewName) => {
};
// Search for the parent component of the given view
OHIF.blaze.getParentComponent = view => {
OHIF.blaze.getParentComponent = (view, property='_component') => {
let currentView = view;
while (currentView) {
currentView = currentView.originalParentView || currentView.parentView;
if (currentView && currentView._component) {
return currentView._component;
if (currentView && currentView[property]) {
return currentView[property];
}
}
};