From 9a2019c17829e413c41cb73d97c37a55b73f860d Mon Sep 17 00:00:00 2001 From: evanpelle Date: Thu, 14 Aug 2025 11:18:08 -0700 Subject: [PATCH] restricted flags --- src/client/FlagInputModal.ts | 11 ++++++++--- src/client/data/countries.json | 9 ++++++--- src/core/Schemas.ts | 2 +- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/client/FlagInputModal.ts b/src/client/FlagInputModal.ts index 86e413677d..996da10285 100644 --- a/src/client/FlagInputModal.ts +++ b/src/client/FlagInputModal.ts @@ -29,9 +29,7 @@ export class FlagInputModal extends LitElement { class="flex flex-wrap justify-evenly gap-[1rem] overflow-y-auto overflow-x-hidden h-[90%]" > ${Countries.filter( - (country) => - country.name.toLowerCase().includes(this.search.toLowerCase()) || - country.code.toLowerCase().includes(this.search.toLowerCase()), + (country) => !country.restricted && this.includedInSearch(country), ).map( (country) => html`