ui/app: fix silences filter (#2075)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
ad9dcf6d5a
commit
5211fad581
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue