mirror of
https://github.com/nasa/openmct.git
synced 2025-02-01 00:45:41 +00:00
[Mobile] Browse Controller
Adjusted BrowseController to hide the back button if current object represented/ selected has no context.
This commit is contained in:
parent
6e172359b4
commit
a0169ad158
@ -150,12 +150,18 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
function checkRoot() {
|
function checkRoot() {
|
||||||
var parent = navigationService.getNavigation().getCapability('context').getParent();
|
var context = navigationService.getNavigation().getCapability('context'),
|
||||||
|
parent;
|
||||||
|
if (context) {
|
||||||
|
parent = context.getParent();
|
||||||
if (parent.getId() !== ROOT_ID) {
|
if (parent.getId() !== ROOT_ID) {
|
||||||
$scope.atRoot = false;
|
$scope.atRoot = false;
|
||||||
} else {
|
} else {
|
||||||
$scope.atRoot = true;
|
$scope.atRoot = true;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$scope.atRoot = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load the root object, put it in the scope.
|
// Load the root object, put it in the scope.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user