AWV-3: Transforming the CINE inputs in form components
This commit is contained in:
1 parent
176b503c5a
commit
20b49d5036
15 files changed
+145
-38
No files matched your search
@@ -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];
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user