mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 18:38:26 +00:00
Add search field to organization view
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user