mirror of
https://github.com/nasa/openmct.git
synced 2025-06-21 16:49:42 +00:00
[Addressability] Re-Edit Bug
Fixed re-edit but by implementing what Victor said in issue #25. Adding check on /browse/ part of url and then changing route works WTD 23.
This commit is contained in:
@ -52,7 +52,9 @@ define(
|
|||||||
unlisten;
|
unlisten;
|
||||||
|
|
||||||
unlisten = $scope.$on('$locationChangeSuccess', function () {
|
unlisten = $scope.$on('$locationChangeSuccess', function () {
|
||||||
|
if ($location.path().indexOf("/browse/") === 0) {
|
||||||
$route.current = priorRoute;
|
$route.current = priorRoute;
|
||||||
|
}
|
||||||
unlisten();
|
unlisten();
|
||||||
});
|
});
|
||||||
// urlService.urlForLocation used to adjust current
|
// urlService.urlForLocation used to adjust current
|
||||||
|
@ -54,7 +54,9 @@ define(
|
|||||||
if (viewKey) {
|
if (viewKey) {
|
||||||
$location.search('view', viewKey);
|
$location.search('view', viewKey);
|
||||||
unlisten = $scope.$on('$locationChangeSuccess', function () {
|
unlisten = $scope.$on('$locationChangeSuccess', function () {
|
||||||
|
if ($location.path().indexOf("/browse/") === 0) {
|
||||||
$route.current = priorRoute;
|
$route.current = priorRoute;
|
||||||
|
}
|
||||||
unlisten();
|
unlisten();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user