mirror of
https://github.com/lubosz/overte.git
synced 2025-04-26 11:55:31 +02:00
strip snapshot stacking code - we'll do it on server or not at all
This commit is contained in:
parent
3ade31bdf6
commit
36a0adf553
1 changed files with 1 additions and 11 deletions
|
@ -41,7 +41,6 @@ Column {
|
|||
// FIXME onFilterChanged: filterChoicesByText();
|
||||
property var goFunction: null;
|
||||
property var http: null;
|
||||
property var itemCountDictionary: ({});
|
||||
|
||||
HifiConstants { id: hifi }
|
||||
Component.onCompleted: suggestions.getFirstPage();
|
||||
|
@ -56,16 +55,8 @@ Column {
|
|||
];
|
||||
endpoint: '/api/v1/user_stories?' + options.join('&');
|
||||
itemsPerPage: 3;
|
||||
getFirstPage: function (delayRefresh) {
|
||||
root.itemCountDictionary = {};
|
||||
suggestions.getFirstPageInternal(delayRefresh);
|
||||
};
|
||||
processPage: function (data) {
|
||||
var adding = data.user_stories.map(makeModelData);
|
||||
for (var i = 0; i < suggestions.count; i++) { // Update all the previous counts with possibly new values.
|
||||
suggestions.setProperty(i, "drillDownToPlace", itemCountDictionary[suggestions.get(i).place_name] > 0);
|
||||
}
|
||||
return adding;
|
||||
return data.user_stories.map(makeModelData);
|
||||
};
|
||||
listModelName: actions;
|
||||
listView: scroll;
|
||||
|
@ -87,7 +78,6 @@ Column {
|
|||
tags = data.tags || [data.action, data.username],
|
||||
description = data.description || "",
|
||||
thumbnail_url = data.thumbnail_url || "";
|
||||
itemCountDictionary[name] = (itemCountDictionary[name] || 0) + 1;
|
||||
return {
|
||||
place_name: name,
|
||||
username: data.username || "",
|
||||
|
|
Loading…
Reference in a new issue