mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-10 06:43:00 +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();
|
// FIXME onFilterChanged: filterChoicesByText();
|
||||||
property var goFunction: null;
|
property var goFunction: null;
|
||||||
property var http: null;
|
property var http: null;
|
||||||
property var itemCountDictionary: ({});
|
|
||||||
|
|
||||||
HifiConstants { id: hifi }
|
HifiConstants { id: hifi }
|
||||||
Component.onCompleted: suggestions.getFirstPage();
|
Component.onCompleted: suggestions.getFirstPage();
|
||||||
|
@ -56,16 +55,8 @@ Column {
|
||||||
];
|
];
|
||||||
endpoint: '/api/v1/user_stories?' + options.join('&');
|
endpoint: '/api/v1/user_stories?' + options.join('&');
|
||||||
itemsPerPage: 3;
|
itemsPerPage: 3;
|
||||||
getFirstPage: function (delayRefresh) {
|
|
||||||
root.itemCountDictionary = {};
|
|
||||||
suggestions.getFirstPageInternal(delayRefresh);
|
|
||||||
};
|
|
||||||
processPage: function (data) {
|
processPage: function (data) {
|
||||||
var adding = data.user_stories.map(makeModelData);
|
return 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;
|
|
||||||
};
|
};
|
||||||
listModelName: actions;
|
listModelName: actions;
|
||||||
listView: scroll;
|
listView: scroll;
|
||||||
|
@ -87,7 +78,6 @@ Column {
|
||||||
tags = data.tags || [data.action, data.username],
|
tags = data.tags || [data.action, data.username],
|
||||||
description = data.description || "",
|
description = data.description || "",
|
||||||
thumbnail_url = data.thumbnail_url || "";
|
thumbnail_url = data.thumbnail_url || "";
|
||||||
itemCountDictionary[name] = (itemCountDictionary[name] || 0) + 1;
|
|
||||||
return {
|
return {
|
||||||
place_name: name,
|
place_name: name,
|
||||||
username: data.username || "",
|
username: data.username || "",
|
||||||
|
|
Loading…
Reference in a new issue