mirror of
https://github.com/prometheus/alertmanager
synced 2025-01-10 07:49:36 +00:00
Redirect to alerts page from top level
This commit is contained in:
parent
1d1945933b
commit
7fb8e6b9fa
@ -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
|
||||
|
||||
|
||||
|
||||
|
@ -74,7 +74,7 @@ type Msg
|
||||
| EditSilence Int
|
||||
| AlertGroupsFetch (Result Http.Error (List AlertGroup))
|
||||
| FetchAlertGroups
|
||||
| RedirectSilences
|
||||
| RedirectAlerts
|
||||
|
||||
|
||||
type Route
|
||||
|
Loading…
Reference in New Issue
Block a user