forked from MapComplete/MapComplete
UX: Wikidata-input now uses multi-input by default
This commit is contained in:
parent
63b96e97bb
commit
b5c7c1eb05
2 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
export let searchValue = new UIEventSource(undefined)
|
export let searchValue = new UIEventSource(undefined)
|
||||||
export let placeholder = t.searchWikidata
|
export let placeholder = t.searchWikidata
|
||||||
export let allowMultiple = false
|
export let allowMultiple = true
|
||||||
|
|
||||||
export let notInstanceOf: number[] = []
|
export let notInstanceOf: number[] = []
|
||||||
export let instanceOf: number[] = []
|
export let instanceOf: number[] = []
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
(options?.notInstanceOf ?? []).map((i) => Wikidata.QIdToNumber(i))
|
(options?.notInstanceOf ?? []).map((i) => Wikidata.QIdToNumber(i))
|
||||||
)
|
)
|
||||||
|
|
||||||
let allowMultipleArg = options?.["multiple"]
|
let allowMultipleArg = options?.["multiple"] ?? "yes"
|
||||||
let allowMultiple = allowMultipleArg === "yes" || "" + allowMultipleArg === "true"
|
let allowMultiple = allowMultipleArg === "yes" || "" + allowMultipleArg === "true"
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue