add bookmarking clients, fix sorting issues, add sorting by country and only showing specific countries.
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
requestPreview,
|
||||
requestThumbnail,
|
||||
} from "./data.js";
|
||||
import { initCountryPicker } from "./country-picker.js";
|
||||
|
||||
const grid = document.getElementById("grid");
|
||||
const totalPill = document.getElementById("total-pill");
|
||||
@@ -445,6 +446,13 @@ filterOsSelect?.addEventListener("change", (e) => {
|
||||
loadWithOptions({ force: true });
|
||||
});
|
||||
|
||||
initCountryPicker((code) => {
|
||||
state.filterCountry = code;
|
||||
state.page = 1;
|
||||
state.lastDigest = "";
|
||||
loadWithOptions({ force: true });
|
||||
});
|
||||
|
||||
showOfflineToggle?.addEventListener("change", (e) => {
|
||||
if (e.target.checked) {
|
||||
state.filterStatus = lastNonOnlineStatus || "all";
|
||||
|
||||
Reference in New Issue
Block a user