Redirect to alerts page from top level

This commit is contained in:
stuart nelson 2016-12-12 10:46:18 +01:00
parent 1d1945933b
commit 7fb8e6b9fa
2 changed files with 4 additions and 4 deletions

View File

@ -78,8 +78,8 @@ update msg model =
in
( { model | route = NotFound }, Cmd.none )
RedirectSilences ->
( { model | route = AlertGroupsRoute }, Navigation.newUrl "/#/silences" )
RedirectAlerts ->
( { model | route = AlertGroupsRoute }, Navigation.newUrl "/#/alerts" )
urlUpdate : Navigation.Location -> Msg
@ -106,7 +106,7 @@ urlUpdate location =
_ ->
-- TODO: 404 page
RedirectSilences
RedirectAlerts

View File

@ -74,7 +74,7 @@ type Msg
| EditSilence Int
| AlertGroupsFetch (Result Http.Error (List AlertGroup))
| FetchAlertGroups
| RedirectSilences
| RedirectAlerts
type Route