Ghostkeeper
e3cd5606f0
Make load more button load more packages
...
This adds the functionality of the button.
Contributes to issue CURA-8556.
2021-10-21 18:26:29 +02:00
Ghostkeeper
8776294932
Set loading state to False once parsing has completed
...
This allows the user to request the next one.
Contributes to issue CURA-8556.
2021-10-21 18:23:19 +02:00
Ghostkeeper
27da03d862
Add a property to see whether there are any more packages to load
...
Contributes to issue CURA-8556.
2021-10-21 17:10:32 +02:00
Ghostkeeper
031c8efbe6
Implement pagination for package list
...
The simplest way I can think of.
Currently we only call the request function once, so we can only get the first page. Before calling it multiple times, we should check if there are more pages by checking if the request URL is an empty string.
Contributes to issue CURA-8556.
2021-10-21 16:56:53 +02:00
Ghostkeeper
38038b3752
Store items directly in listModel when parsing them
...
No need to use a custom list in Python and update the ListModel from that. This is much simpler and more efficient.
Contributes to issue CURA-8556.
2021-10-21 16:10:23 +02:00
Ghostkeeper
6415a2649e
Parse responses from package API call
...
Only positive responses so far. Error handling is not implemented yet.
Contributes to issue CURA-8556.
2021-10-21 16:02:46 +02:00
Ghostkeeper
3138452f94
Allow PackageList to be used as a model from QML
...
QML is leading here and holding the pointers for creation and destruction.
Contributes to issue CURA-8556.
2021-10-21 15:46:46 +02:00
Ghostkeeper
4337e81b77
Make request to Marketplace API when package list loads
...
We don't parse the response just yet, but this is part of the work.
Contributes to issue CURA-8556.
2021-10-21 15:33:37 +02:00
Ghostkeeper
5851ad52c6
Add property to tell if the list is currently loading or loading more
...
We'll need to display a spinner of some kind in the front-end, I think.
Contributes to issue CURA-8556.
2021-10-21 15:15:56 +02:00
Ghostkeeper
0f5c923d93
Add model to represent packages and export information to QML
...
We'll construct a bunch of these when we receive information from the API.
Contributes to issue CURA-8556.
2021-10-21 15:03:41 +02:00
Ghostkeeper
cf2b0d2777
Add empty ListModel to store list of packages with
...
This model does nothing yet.
Contributes to issue CURA-8556.
2021-10-19 17:48:21 +02:00