mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 18:38:26 +00:00
Show new data about spaces in web-ui
This commit is contained in:
@ -221,10 +221,19 @@ getSpaceDetail flags id receive =
|
||||
}
|
||||
|
||||
|
||||
getSpaces : Flags -> String -> (Result Http.Error SpaceList -> msg) -> Cmd msg
|
||||
getSpaces flags query receive =
|
||||
getSpaces : Flags -> String -> Bool -> (Result Http.Error SpaceList -> msg) -> Cmd msg
|
||||
getSpaces flags query owningOnly receive =
|
||||
Http2.authGet
|
||||
{ url = flags.config.baseUrl ++ "/api/v1/sec/space?q=" ++ Url.percentEncode query
|
||||
{ url =
|
||||
flags.config.baseUrl
|
||||
++ "/api/v1/sec/space?q="
|
||||
++ Url.percentEncode query
|
||||
++ (if owningOnly then
|
||||
"&owning=true"
|
||||
|
||||
else
|
||||
""
|
||||
)
|
||||
, account = getAccount flags
|
||||
, expect = Http.expectJson receive Api.Model.SpaceList.decoder
|
||||
}
|
||||
|
Reference in New Issue
Block a user