mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 16:36:13 +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,9 +150,15 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
function checkRoot() {
|
function checkRoot() {
|
||||||
var parent = navigationService.getNavigation().getCapability('context').getParent();
|
var context = navigationService.getNavigation().getCapability('context'),
|
||||||
if (parent.getId() !== ROOT_ID) {
|
parent;
|
||||||
$scope.atRoot = false;
|
if (context) {
|
||||||
|
parent = context.getParent();
|
||||||
|
if (parent.getId() !== ROOT_ID) {
|
||||||
|
$scope.atRoot = false;
|
||||||
|
} else {
|
||||||
|
$scope.atRoot = true;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$scope.atRoot = true;
|
$scope.atRoot = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user