0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-25 05:02:57 +01:00

Recognise 'multiple' option in ChooserModal as a URL parameter to pass to the modal view

the modal view doesn't do anything with it yet
This commit is contained in:
Matt Westcott 2023-01-12 02:38:04 +00:00
parent c66b793957
commit e94e268ecb

View File

@ -326,9 +326,12 @@ class ChooserModal {
return this.baseUrl;
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
getURLParams(opts) {
return {};
const urlParams = {};
if (opts.multiple) {
urlParams.multiple = 1;
}
return urlParams;
}
open(opts, callback) {