Add search field to organization view

This commit is contained in:
Eike Kettner
2020-01-02 20:21:54 +01:00
parent 8814de3c38
commit 906ee9034e
2 changed files with 36 additions and 8 deletions

View File

@ -365,10 +365,10 @@ getOrgLight flags receive =
}
getOrganizations : Flags -> (Result Http.Error OrganizationList -> msg) -> Cmd msg
getOrganizations flags receive =
getOrganizations : Flags -> String -> (Result Http.Error OrganizationList -> msg) -> Cmd msg
getOrganizations flags query receive =
Http2.authGet
{ url = flags.config.baseUrl ++ "/api/v1/sec/organization?full=true"
{ url = flags.config.baseUrl ++ "/api/v1/sec/organization?full=true&q=" ++ query
, account = getAccount flags
, expect = Http.expectJson receive Api.Model.OrganizationList.decoder
}