[Navigation] Prevent navigation to orphan objects

This is particularly useful when a persistence failure has caused
a created object not to be added to its parent container. #765
This commit is contained in:
Victor Woeltjen
2016-05-19 16:26:30 -07:00
parent 5b4952d4c6
commit 1ced47fc2c
3 changed files with 265 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ define([
"./src/navigation/NavigationService",
"./src/creation/CreationPolicy",
"./src/navigation/NavigateAction",
"./src/navigation/OrphanNavigationHandler",
"./src/windowing/NewTabAction",
"./src/windowing/FullscreenAction",
"./src/creation/CreateActionProvider",
@@ -59,6 +60,7 @@ define([
NavigationService,
CreationPolicy,
NavigateAction,
OrphanNavigationHandler,
NewTabAction,
FullscreenAction,
CreateActionProvider,
@@ -346,6 +348,14 @@ define([
"$rootScope",
"$document"
]
},
{
"implementation": OrphanNavigationHandler,
"depends": [
"throttle",
"topic",
"navigationService"
]
}
],
"licenses": [