mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 05:55:59 -03:30
Merge pull request #2857 from jaredevantabor/activity-stream
redirect user to dashboard on refresh
This commit is contained in:
@@ -36,14 +36,10 @@ export default
|
|||||||
// The user is navigating away from the activity stream - take them back from whence they came
|
// The user is navigating away from the activity stream - take them back from whence they came
|
||||||
else {
|
else {
|
||||||
// Pull the previous state out of local storage
|
// Pull the previous state out of local storage
|
||||||
var previousState = Store('previous_state');
|
|
||||||
|
|
||||||
if(originalRoute) {
|
if(originalRoute) {
|
||||||
$state.go(originalRoute.name, originalRoute.fromParams);
|
$state.go(originalRoute.name, originalRoute.fromParams);
|
||||||
}
|
}
|
||||||
else if(previousState && !Empty(previousState.name)) {
|
|
||||||
$state.go(previousState.name, previousState.fromParams);
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
// If for some reason something went wrong (like local storage was wiped, etc) take the
|
// If for some reason something went wrong (like local storage was wiped, etc) take the
|
||||||
// user back to the dashboard
|
// user back to the dashboard
|
||||||
|
|||||||
Reference in New Issue
Block a user