From 8e6c2beb1aa368e7ef236463db08b37ad0d53ed6 Mon Sep 17 00:00:00 2001 From: Thomas Abraham Date: Mon, 8 Feb 2021 15:54:12 +0100 Subject: [PATCH] Adding status to query --- client/Pages/EventTypeDetails/QueryTab.elm | 2 +- client/Stores/Query.elm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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