Update status on page load

This commit is contained in:
stuart nelson 2017-03-17 17:12:14 +01:00
parent 46012db1ec
commit 080f850270

View File

@ -13,6 +13,7 @@ import Silences.Update
import Translators exposing (alertTranslator, silenceTranslator)
import Status.Types exposing (StatusModel)
import Status.Update exposing (update)
import Status.Api exposing (getStatus)
main : Program Never Model Msg
@ -88,7 +89,7 @@ update msg model =
)
NavigateToStatus ->
( { model | route = StatusRoute }, Cmd.none )
( { model | route = StatusRoute }, getStatus )
Silences silencesMsg ->
let