Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

Commit

Permalink
Adding status to query
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Abraham committed Feb 8, 2021
1 parent 30bc617 commit 8e6c2be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/Pages/EventTypeDetails/QueryTab.elm
Original file line number Diff line number Diff line change
Expand Up @@ -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) ]
Expand Down
2 changes: 2 additions & 0 deletions client/Stores/Query.elm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type alias Query =
{ id : String
, sql : String
, envelope : Bool
, status : String
}


Expand All @@ -17,3 +18,4 @@ queryDecoder =
|> required "id" string
|> required "sql" string
|> required "envelope" bool
|> required "status" string

0 comments on commit 8e6c2be

Please sign in to comment.