mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 16:02:14 +00:00
fix initialize of dropdownmenu after melt migration
This commit is contained in:
@@ -155,8 +155,9 @@
|
||||
}}
|
||||
>
|
||||
<AppButton
|
||||
noInitialize
|
||||
extraKey={'idx' + actionIndex}
|
||||
{render}
|
||||
render={true}
|
||||
id={actionButton.id}
|
||||
customCss={actionButton.customCss}
|
||||
configuration={actionButton.configuration}
|
||||
|
||||
@@ -16,6 +16,27 @@
|
||||
$: !firstLoad && canInitializeAll($initialized?.initializedComponents, $app) && refresh()
|
||||
|
||||
function canInitializeAll(initialized: string[] | undefined, app: App) {
|
||||
// console.log(
|
||||
// 'canInitializeAll',
|
||||
// JSON.stringify(
|
||||
// {
|
||||
// initialized: initialized,
|
||||
// items: allItems(app.grid, app.subgrids).map((x) => x.id),
|
||||
// // missing1: allItems(app.grid, app.subgrids).filter((x) => !initialized?.includes(x.id)),
|
||||
|
||||
// missing2: initialized?.filter(
|
||||
// (x) =>
|
||||
// !allItems(app.grid, app.subgrids)
|
||||
// .map((x) => x.id)
|
||||
// .includes(x)
|
||||
// )
|
||||
// },
|
||||
// null,
|
||||
// 2
|
||||
// ),
|
||||
// initialized?.length ==
|
||||
// allItems(app.grid, app.subgrids).length + (app.hiddenInlineScripts?.length ?? 0)
|
||||
// )
|
||||
if (app.lazyInitRequire == undefined) {
|
||||
return (
|
||||
initialized?.length ==
|
||||
|
||||
Reference in New Issue
Block a user