mirror of
https://github.com/ansible/awx.git
synced 2026-04-07 02:59:21 -02:30
Tweaked isRoot logic to follow the same pattern as the rest of the function
This commit is contained in:
@@ -73,7 +73,7 @@ export default ['$q', function($q){
|
|||||||
placeholder: true,
|
placeholder: true,
|
||||||
isNew: true,
|
isNew: true,
|
||||||
edited: false,
|
edited: false,
|
||||||
isRoot: _.get(params, 'parent.isStartNode') ? true : _.get(params, 'parent.source.isStartNode', false)
|
isRoot: (params.betweenTwoNodes) ? _.get(params, 'parent.source.isStartNode', false) : _.get(params, 'parent.isStartNode', false)
|
||||||
};
|
};
|
||||||
|
|
||||||
let parentNode = (params.betweenTwoNodes) ? this.searchTree({element: params.tree, matchingId: params.parent.source.id}) : this.searchTree({element: params.tree, matchingId: params.parent.id});
|
let parentNode = (params.betweenTwoNodes) ? this.searchTree({element: params.tree, matchingId: params.parent.source.id}) : this.searchTree({element: params.tree, matchingId: params.parent.id});
|
||||||
|
|||||||
Reference in New Issue
Block a user