Skip to content

Commit 44a51f0

Browse files
authored
feat: render plugin download UI on event
1 parent d9a4a0c commit 44a51f0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/openscd/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Once Node.js is installed on your system, you may get started by entering the fo
2929
git clone https://github.com/openscd/open-scd.git
3030
cd open-scd
3131
npm install
32+
npm run build
3233
npm start
3334
```
3435

packages/openscd/src/addons/Layout.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,10 @@ export class OscdLayout extends LitElement {
327327
this.requestUpdate();
328328
}
329329
);
330+
331+
document.addEventListener("open-plugin-download", () => {
332+
this.pluginDownloadUI.show();
333+
});
330334
}
331335

332336

0 commit comments

Comments
 (0)