mirror of
https://github.com/opnsense/core.git
synced 2026-06-09 00:42:36 -04:00
bootgrid: align datakey with the rest of the options, but allow top-level placement
This commit is contained in:
parent
9e7fad6c31
commit
1fe9b82f78
1 changed files with 4 additions and 3 deletions
|
|
@ -321,9 +321,10 @@ class UIBootgrid {
|
|||
}
|
||||
}
|
||||
|
||||
if (compatOptions?.datakey) {
|
||||
// note: this does not come from the 'options' object
|
||||
this.options.datakey = compatOptions?.datakey;
|
||||
const datakey = compatOptions?.datakey || bootGridOptions?.datakey;
|
||||
if (datakey) {
|
||||
// datakey can come from top-level object for legacy reasons
|
||||
this.options.datakey = datakey;
|
||||
}
|
||||
|
||||
if (bootGridOptions?.onBeforeRenderDialog) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue