mirror of
https://github.com/nasa/openmct.git
synced 2025-06-22 17:08:57 +00:00
Object has no children fix (#2038)
* Added files for PR 1904 * Added new lines * space fix * Implemented changes * Space fix * checkstyle fix Fixes #1826
This commit is contained in:
committed by
Pete Richards
parent
b8f278cabf
commit
eaa9514453
@ -24,7 +24,7 @@ define([
|
||||
'angular',
|
||||
'../ui/TreeView'
|
||||
], function (angular, TreeView) {
|
||||
function MCTTree(gestureService) {
|
||||
function MCTTree(gestureService, openmct) {
|
||||
function link(scope, element) {
|
||||
if (!scope.allowSelection) {
|
||||
scope.allowSelection = function () {
|
||||
@ -34,8 +34,9 @@ define([
|
||||
if (!scope.onSelection) {
|
||||
scope.onSelection = function () {};
|
||||
}
|
||||
|
||||
var currentSelection = scope.selectedObject;
|
||||
var treeView = new TreeView(gestureService);
|
||||
var treeView = new TreeView(gestureService, openmct);
|
||||
|
||||
function setSelection(domainObject, event) {
|
||||
if (currentSelection === domainObject) {
|
||||
|
Reference in New Issue
Block a user