mirror of
https://github.com/nasa/openmct.git
synced 2025-03-10 22:43:55 +00:00
[Mobile] Simplified
treeSlide now uses one line that sets it to true or false simply like a switch. So not matter what it will either slide or not.
This commit is contained in:
parent
30efec0090
commit
e47a36e799
@ -142,11 +142,7 @@ define(
|
||||
};
|
||||
|
||||
$scope.treeSlide = function () {
|
||||
if ($scope.treeCl) {
|
||||
$scope.treeCl = false;
|
||||
} else if (!$scope.treeCl) {
|
||||
$scope.treeCl = true;
|
||||
}
|
||||
$scope.treeCl = !$scope.treeCl;
|
||||
};
|
||||
|
||||
// Listen for changes in navigation state.
|
||||
|
Loading…
x
Reference in New Issue
Block a user