Skip to content

Commit 9c5859e

Browse files
authored
feat: enable custom plugin dialog through an event
1 parent 29e5fed commit 9c5859e

File tree

2 files changed

+3108
-3098
lines changed

2 files changed

+3108
-3098
lines changed

packages/openscd/src/addons/Layout.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,13 @@ export class OscdLayout extends LitElement {
5959

6060
render(): TemplateResult {
6161
return html`
62-
<slot></slot>
63-
${this.renderHeader()} ${this.renderAside()} ${this.renderContent()}
64-
${this.renderLanding()} ${this.renderPlugging()}
62+
<div
63+
@open-plugin-download=${() => this.pluginDownloadUI.show()}
64+
>
65+
<slot></slot>
66+
${this.renderHeader()} ${this.renderAside()} ${this.renderContent()}
67+
${this.renderLanding()} ${this.renderPlugging()}
68+
</div>
6569
`;
6670
}
6771

0 commit comments

Comments
 (0)