Fixed all filter

ref #147
This commit is contained in:
Nicolai Ort 2023-02-22 18:31:36 +01:00
parent 0feee0ae2f
commit 8dfa19fa0f
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

View File

@ -9,15 +9,12 @@
on:input={() => { on:input={() => {
setTimeout(() => { setTimeout(() => {
if (`${selected}`.trim()) { if (`${selected}`.trim()) {
const value = selected; if(selected==="all"){
handler.filter(value, (card) => { handler.filter('', 'enabled')
if ( }
card.enabled === value || else{
value === "all" handler.filter(selected, 'enabled')
) }
return card;
return "";
});
} }
}, 50); }, 50);
}} }}
@ -26,7 +23,7 @@
id="statusfilter" id="statusfilter"
> >
<option value="all">Alle</option> <option value="all">Alle</option>
<option value={true}>{$_("enabled")}</option> <option value="true">{$_("enabled")}</option>
<option value={false}>{$_("disabled")}</option> <option value="false">{$_("disabled")}</option>
</select> </select>
</th> </th>