Actually set search string + fix code style warnings.

It now works! Sort of. Turns out you have to manually click 'Load More' each time now :-) This is also at least partially explains the 'cases' mentioned in previous commit (when switching tabs).

part of CURA-8559
This commit is contained in:
Remco Burema 2021-11-12 14:30:09 +01:00
parent d7ac307ace
commit 79f7724923
No known key found for this signature in database
GPG key ID: 215C49431D43F98C
3 changed files with 4 additions and 4 deletions

View file

@ -110,7 +110,7 @@ class RemotePackageList(PackageList):
if self._package_type_filter != "":
request_url += f"&package_type={self._package_type_filter}"
if self._search_string != "":
request_url += f"" # TODO
request_url += f"&search={self._search_string}"
return request_url
def _parseResponse(self, reply: "QNetworkReply") -> None:

View file

@ -18,7 +18,7 @@ Button
background: Rectangle
{
color: backgroundColor
border.color: transparent
border.color: "transparent"
radius: Math.round(width * 0.5)
}

View file

@ -170,9 +170,9 @@ Window
function onLoaded()
{
pageTitle.text = content.item.pageTitle
searchStringChanged.connect(onSearchStringChanged)
searchStringChanged.connect(handleSearchStringChanged)
}
function onSearchStringChanged(new_search)
function handleSearchStringChanged(new_search)
{
content.item.model.searchString = new_search
}