ui/app: fix silences filter (#2075)

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2019-10-18 11:47:26 +02:00 committed by GitHub
parent ad9dcf6d5a
commit 5211fad581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@ import Http
import Json.Decode
import Silences.Decoders
import Utils.Api
import Utils.Filter exposing (Filter, generateQueryString)
import Utils.Filter exposing (Filter, generateAPIQueryString)
import Utils.Types exposing (ApiData(..))
@ -14,7 +14,7 @@ getSilences : String -> Filter -> (ApiData (List GettableSilence) -> msg) -> Cmd
getSilences apiUrl filter msg =
let
url =
String.join "/" [ apiUrl, "silences" ++ generateQueryString filter ]
String.join "/" [ apiUrl, "silences" ++ generateAPIQueryString filter ]
in
Utils.Api.send (Utils.Api.get url (Json.Decode.list Data.GettableSilence.decoder))
|> Cmd.map msg