mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-20 07:25:50 +02:00
Don't ignore unavailable.
This commit is contained in:
parent
ac03c20c39
commit
ffe4f4c4f8
|
@ -14,11 +14,13 @@ class ItemsFilter extends View {
|
|||
this._filterByStores = getBooleanAttribute(this, "stores");
|
||||
this._filterByMisc = getBooleanAttribute(this, "misc");
|
||||
this._noChartClear = getBooleanAttribute(this, "nochartclear");
|
||||
this._availableOption = getBooleanAttribute(this, "availableoption");
|
||||
|
||||
const hidePriceChanges = this._filterByPriceChanges ? "" : "hidden";
|
||||
const hidePriceDirection = this._filterByPriceDirection ? "" : "hidden";
|
||||
const hideStores = this._filterByStores ? "" : "hidden";
|
||||
const hideMisc = this._filterByMisc ? "" : "hidden";
|
||||
const hideAvailableObption = this._availableOption ? "" : "hidden";
|
||||
const placeholder = this.hasAttribute("placeholder") ? this.getAttribute("placeholder") : "Produkte suchen... (min. 3 Zeichen)";
|
||||
|
||||
this.innerHTML = /*html*/ `
|
||||
|
@ -180,9 +182,9 @@ class ItemsFilter extends View {
|
|||
return;
|
||||
}
|
||||
|
||||
if (settings.onlyAvailable) {
|
||||
/*if (settings.onlyAvailable) {
|
||||
filteredItems = filteredItems.filter((item) => !item.unavailable);
|
||||
}
|
||||
}*/
|
||||
|
||||
this.model.lastDate = null;
|
||||
if (this._filterByPriceChanges) {
|
||||
|
|
|
@ -383,16 +383,6 @@
|
|||
"url": "https://www.roksh.at//hofer/angebot/tierberdarf/katzennahrung",
|
||||
"code": "91"
|
||||
},
|
||||
{
|
||||
"id": "joghurt-topfen",
|
||||
"url": "https://www.roksh.at/hofer/angebot/joghurt-topfen",
|
||||
"code": "34"
|
||||
},
|
||||
{
|
||||
"id": "milchgetrank",
|
||||
"url": "https://www.roksh.at/hofer/angebot/milchgetrank",
|
||||
"code": "34"
|
||||
},
|
||||
{
|
||||
"id": "fruchtjoghurt",
|
||||
"url": "https://www.roksh.at/hofer/angebot/fruchtjoghurt",
|
||||
|
@ -404,14 +394,19 @@
|
|||
"code": "34"
|
||||
},
|
||||
{
|
||||
"id": "milch-sahne-butter",
|
||||
"url": "https://www.roksh.at/hofer/angebot/milch-sahne-butter",
|
||||
"id": "milchgetrank",
|
||||
"url": "https://www.roksh.at/hofer/angebot/milchgetrank",
|
||||
"code": "34"
|
||||
},
|
||||
{
|
||||
"id": "kasespezialitaten",
|
||||
"url": "https://www.roksh.at/hofer/angebot/kasespezialitaten",
|
||||
"code": "33"
|
||||
"id": "joghurt-topfen",
|
||||
"url": "https://www.roksh.at/hofer/angebot/joghurt-topfen",
|
||||
"code": "34"
|
||||
},
|
||||
{
|
||||
"id": "milch-sahne-butter",
|
||||
"url": "https://www.roksh.at/hofer/angebot/milch-sahne-butter",
|
||||
"code": "34"
|
||||
},
|
||||
{
|
||||
"id": "frischkase-co",
|
||||
|
@ -424,8 +419,8 @@
|
|||
"code": "33"
|
||||
},
|
||||
{
|
||||
"id": "hart-schnittkase",
|
||||
"url": "https://www.roksh.at/hofer/angebot/hart-schnittkase",
|
||||
"id": "kase-geschnitten-gerieben",
|
||||
"url": "https://www.roksh.at/hofer/angebot/kase-geschnitten-gerieben",
|
||||
"code": "33"
|
||||
},
|
||||
{
|
||||
|
@ -434,8 +429,13 @@
|
|||
"code": "33"
|
||||
},
|
||||
{
|
||||
"id": "kase-geschnitten-gerieben",
|
||||
"url": "https://www.roksh.at/hofer/angebot/kase-geschnitten-gerieben",
|
||||
"id": "hart-schnittkase",
|
||||
"url": "https://www.roksh.at/hofer/angebot/hart-schnittkase",
|
||||
"code": "33"
|
||||
},
|
||||
{
|
||||
"id": "kasespezialitaten",
|
||||
"url": "https://www.roksh.at/hofer/angebot/kasespezialitaten",
|
||||
"code": "33"
|
||||
},
|
||||
{
|
||||
|
@ -459,13 +459,13 @@
|
|||
"code": "37"
|
||||
},
|
||||
{
|
||||
"id": "wurstel",
|
||||
"url": "https://www.roksh.at/hofer/angebot/wurstel",
|
||||
"id": "speck-rohschinken",
|
||||
"url": "https://www.roksh.at/hofer/angebot/speck-rohschinken",
|
||||
"code": "37"
|
||||
},
|
||||
{
|
||||
"id": "speck-rohschinken",
|
||||
"url": "https://www.roksh.at/hofer/angebot/speck-rohschinken",
|
||||
"id": "wurstel",
|
||||
"url": "https://www.roksh.at/hofer/angebot/wurstel",
|
||||
"code": "37"
|
||||
},
|
||||
{
|
||||
|
@ -473,6 +473,11 @@
|
|||
"url": "https://www.roksh.at/hofer/angebot/leberkase-co",
|
||||
"code": "37"
|
||||
},
|
||||
{
|
||||
"id": "hühnchen-geflügel",
|
||||
"url": "https://www.roksh.at/hofer/angebot/hühnchen-geflügel",
|
||||
"code": "32"
|
||||
},
|
||||
{
|
||||
"id": "faschiertes",
|
||||
"url": "https://www.roksh.at/hofer/angebot/faschiertes",
|
||||
|
@ -483,30 +488,20 @@
|
|||
"url": "https://www.roksh.at/hofer/angebot/schweinefleisch-spezialitaten",
|
||||
"code": "32"
|
||||
},
|
||||
{
|
||||
"id": "hühnchen-geflügel",
|
||||
"url": "https://www.roksh.at/hofer/angebot/hühnchen-geflügel",
|
||||
"code": "32"
|
||||
},
|
||||
{
|
||||
"id": "rind",
|
||||
"url": "https://www.roksh.at/hofer/angebot/rind",
|
||||
"code": "32"
|
||||
},
|
||||
{
|
||||
"id": "honig-nussaufstriche",
|
||||
"url": "https://www.roksh.at/hofer/angebot/honig-nussaufstriche",
|
||||
"code": "56"
|
||||
},
|
||||
{
|
||||
"id": "fruchtaufstriche",
|
||||
"url": "https://www.roksh.at/hofer/angebot/fruchtaufstriche",
|
||||
"code": "56"
|
||||
},
|
||||
{
|
||||
"id": "gemusekonserven",
|
||||
"url": "https://www.roksh.at/hofer/angebot/gemusekonserven",
|
||||
"code": "57"
|
||||
"id": "honig-nussaufstriche",
|
||||
"url": "https://www.roksh.at/hofer/angebot/honig-nussaufstriche",
|
||||
"code": "56"
|
||||
},
|
||||
{
|
||||
"id": "obstkonserven",
|
||||
|
@ -514,8 +509,8 @@
|
|||
"code": "57"
|
||||
},
|
||||
{
|
||||
"id": "sauerkonserven",
|
||||
"url": "https://www.roksh.at/hofer/angebot/sauerkonserven",
|
||||
"id": "gemusekonserven",
|
||||
"url": "https://www.roksh.at/hofer/angebot/gemusekonserven",
|
||||
"code": "57"
|
||||
},
|
||||
{
|
||||
|
@ -523,6 +518,11 @@
|
|||
"url": "https://www.roksh.at/hofer/angebot/fleisch-fischkonserven",
|
||||
"code": "57"
|
||||
},
|
||||
{
|
||||
"id": "sauerkonserven",
|
||||
"url": "https://www.roksh.at/hofer/angebot/sauerkonserven",
|
||||
"code": "57"
|
||||
},
|
||||
{
|
||||
"id": "nusse",
|
||||
"url": "https://www.roksh.at/hofer/angebot/nusse",
|
||||
|
@ -533,30 +533,30 @@
|
|||
"url": "https://www.roksh.at/hofer/angebot/trockenfruchte",
|
||||
"code": "03"
|
||||
},
|
||||
{
|
||||
"id": "tafelschokolade",
|
||||
"url": "https://www.roksh.at/hofer/angebot/tafelschokolade",
|
||||
"code": "64"
|
||||
},
|
||||
{
|
||||
"id": "schokoriegel",
|
||||
"url": "https://www.roksh.at/hofer/angebot/schokoriegel",
|
||||
"code": "64"
|
||||
},
|
||||
{
|
||||
"id": "bonbons-kaugummi",
|
||||
"url": "https://www.roksh.at/hofer/angebot/bonbons-kaugummi",
|
||||
"code": "64"
|
||||
},
|
||||
{
|
||||
"id": "waffeln",
|
||||
"url": "https://www.roksh.at/hofer/angebot/waffeln",
|
||||
"code": "60"
|
||||
},
|
||||
{
|
||||
"id": "tafelschokolade",
|
||||
"url": "https://www.roksh.at/hofer/angebot/tafelschokolade",
|
||||
"code": "64"
|
||||
},
|
||||
{
|
||||
"id": "kekse",
|
||||
"url": "https://www.roksh.at/hofer/angebot/kekse",
|
||||
"code": "64"
|
||||
},
|
||||
{
|
||||
"id": "waffeln",
|
||||
"url": "https://www.roksh.at/hofer/angebot/waffeln",
|
||||
"code": "60"
|
||||
"id": "schokoriegel",
|
||||
"url": "https://www.roksh.at/hofer/angebot/schokoriegel",
|
||||
"code": "64"
|
||||
},
|
||||
{
|
||||
"id": "fruchtgummi",
|
||||
|
@ -584,8 +584,8 @@
|
|||
"code": "23"
|
||||
},
|
||||
{
|
||||
"id": "roseweine-spezialweine",
|
||||
"url": "https://www.roksh.at/hofer/angebot/roseweine-spezialweine",
|
||||
"id": "rotweine",
|
||||
"url": "https://www.roksh.at/hofer/angebot/rotweine",
|
||||
"code": "25"
|
||||
},
|
||||
{
|
||||
|
@ -594,8 +594,8 @@
|
|||
"code": "25"
|
||||
},
|
||||
{
|
||||
"id": "rotweine",
|
||||
"url": "https://www.roksh.at/hofer/angebot/rotweine",
|
||||
"id": "roseweine-spezialweine",
|
||||
"url": "https://www.roksh.at/hofer/angebot/roseweine-spezialweine",
|
||||
"code": "25"
|
||||
},
|
||||
{
|
||||
|
@ -628,50 +628,50 @@
|
|||
"url": "https://www.roksh.at/hofer/angebot/fruchtsafte",
|
||||
"code": "20"
|
||||
},
|
||||
{
|
||||
"id": "smoothies",
|
||||
"url": "https://www.roksh.at/hofer/angebot/smoothies",
|
||||
"code": "20"
|
||||
},
|
||||
{
|
||||
"id": "sirupe",
|
||||
"url": "https://www.roksh.at/hofer/angebot/sirupe",
|
||||
"code": "20"
|
||||
},
|
||||
{
|
||||
"id": "deodorants",
|
||||
"url": "https://www.roksh.at/hofer/angebot/deodorants",
|
||||
"code": "72"
|
||||
},
|
||||
{
|
||||
"id": "duschpflege-seife",
|
||||
"url": "https://www.roksh.at/hofer/angebot/duschpflege-seife",
|
||||
"code": "78"
|
||||
"id": "smoothies",
|
||||
"url": "https://www.roksh.at/hofer/angebot/smoothies",
|
||||
"code": "20"
|
||||
},
|
||||
{
|
||||
"id": "zahn-mundhygiene",
|
||||
"url": "https://www.roksh.at/hofer/angebot/zahn-mundhygiene",
|
||||
"code": "76"
|
||||
},
|
||||
{
|
||||
"id": "herrenkosmetik-rasur",
|
||||
"url": "https://www.roksh.at/hofer/angebot/herrenkosmetik-rasur",
|
||||
"code": "77"
|
||||
},
|
||||
{
|
||||
"id": "intimhygiene",
|
||||
"url": "https://www.roksh.at/hofer/angebot/intimhygiene",
|
||||
"code": "71"
|
||||
},
|
||||
{
|
||||
"id": "duschpflege-seife",
|
||||
"url": "https://www.roksh.at/hofer/angebot/duschpflege-seife",
|
||||
"code": "78"
|
||||
},
|
||||
{
|
||||
"id": "haarpflege",
|
||||
"url": "https://www.roksh.at/hofer/angebot/haarpflege",
|
||||
"code": "73"
|
||||
},
|
||||
{
|
||||
"id": "herrenkosmetik-rasur",
|
||||
"url": "https://www.roksh.at/hofer/angebot/herrenkosmetik-rasur",
|
||||
"code": "77"
|
||||
},
|
||||
{
|
||||
"id": "sonnenpflege",
|
||||
"url": "https://www.roksh.at/hofer/angebot/sonnenpflege",
|
||||
"code": "79"
|
||||
},
|
||||
{
|
||||
"id": "haarpflege",
|
||||
"url": "https://www.roksh.at/hofer/angebot/haarpflege",
|
||||
"code": "73"
|
||||
"id": "deodorants",
|
||||
"url": "https://www.roksh.at/hofer/angebot/deodorants",
|
||||
"code": "72"
|
||||
},
|
||||
{
|
||||
"id": "beikost-snacks",
|
||||
|
@ -688,6 +688,11 @@
|
|||
"url": "https://www.roksh.at/hofer/angebot/milchnahrung",
|
||||
"code": "51"
|
||||
},
|
||||
{
|
||||
"id": "wc-lufterfrischer",
|
||||
"url": "https://www.roksh.at/hofer/angebot/wc-lufterfrischer",
|
||||
"code": "87"
|
||||
},
|
||||
{
|
||||
"id": "reinigungstucher-kuchentucher",
|
||||
"url": "https://www.roksh.at/hofer/angebot/reinigungstucher-kuchentucher",
|
||||
|
@ -698,11 +703,6 @@
|
|||
"url": "https://www.roksh.at/hofer/angebot/spulmittel-putzmittel",
|
||||
"code": "88"
|
||||
},
|
||||
{
|
||||
"id": "wc-lufterfrischer",
|
||||
"url": "https://www.roksh.at/hofer/angebot/wc-lufterfrischer",
|
||||
"code": "87"
|
||||
},
|
||||
{
|
||||
"id": "waschmittel",
|
||||
"url": "https://www.roksh.at/hofer/angebot/waschmittel",
|
||||
|
|
Loading…
Reference in New Issue
Block a user