diff --git a/plugins/workbench-resources/src/components/SpecialView.svelte b/plugins/workbench-resources/src/components/SpecialView.svelte index 04d61d253a7..07c451c8333 100644 --- a/plugins/workbench-resources/src/components/SpecialView.svelte +++ b/plugins/workbench-resources/src/components/SpecialView.svelte @@ -26,7 +26,8 @@ export let label: IntlString export let createLabel: IntlString | undefined export let createComponent: AnyComponent | undefined - export let descriptor: Ref | undefined + export let createComponentProps: Record = {} + export let descriptor: Ref | undefined = undefined export let baseQuery: DocumentQuery = {} let search = '' @@ -68,7 +69,7 @@ function showCreateDialog (ev: MouseEvent) { if (createComponent === undefined) return - showPopup(createComponent, {}, 'top') + showPopup(createComponent, createComponentProps, 'top') } function updateResultQuery (search: string, baseQuery: DocumentQuery = {}): DocumentQuery { diff --git a/plugins/workbench-resources/src/components/navigator/SpecialElement.svelte b/plugins/workbench-resources/src/components/navigator/SpecialElement.svelte index 51ed139722f..a9b18ffb532 100644 --- a/plugins/workbench-resources/src/components/navigator/SpecialElement.svelte +++ b/plugins/workbench-resources/src/components/navigator/SpecialElement.svelte @@ -29,6 +29,7 @@ +
=> ({ component: { WorkbenchApp,