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:
parent
c66b793957
commit
e94e268ecb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user