diff --git a/client/Pages/EventTypeDetails/QueryTab.elm b/client/Pages/EventTypeDetails/QueryTab.elm index 4e733dc..ae8a0ee 100644 --- a/client/Pages/EventTypeDetails/QueryTab.elm +++ b/client/Pages/EventTypeDetails/QueryTab.elm @@ -46,7 +46,7 @@ queryTabHeader settings model query = [ span [] [ text "SQL Query" ] , helpIcon "Nakadi SQL" queryHelp BottomRight , label [ class "query-tab__label" ] [ text " Status: " ] - , span [ class statClass ] [ text "active" ] + , span [ class statClass ] [ text query.status ] , helpIcon "Envelope" Help.envelope BottomRight , label [ class "query-tab__label" ] [ text " Envelope: " ] , span [] [ text (boolToString query.envelope) ] diff --git a/client/Stores/Query.elm b/client/Stores/Query.elm index 97d2200..fb36753 100644 --- a/client/Stores/Query.elm +++ b/client/Stores/Query.elm @@ -8,6 +8,7 @@ type alias Query = { id : String , sql : String , envelope : Bool + , status : String } @@ -17,3 +18,4 @@ queryDecoder = |> required "id" string |> required "sql" string |> required "envelope" bool + |> required "status" string