Skip to content

Commit

Permalink
refactor(plugins): improve extensions dialog UI (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobVogelsang authored Feb 10, 2022
1 parent 4fd993d commit 9c0c963
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/Plugging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,17 @@ export function Plugging<TBase extends new (...args: any[]) => EditingElement>(
>
</mwc-button>
<mwc-button
raised
slot="secondaryAction"
icon=""
label="${translate('close')}"
dialogAction="close"
></mwc-button>
<mwc-button
outlined
trailingIcon
slot="primaryAction"
icon="library_add"
label="${translate('add')}&hellip;"
label="${translate('plugins.add.heading')}&hellip;"
@click=${() => this.pluginDownloadUI.show()}
>
</mwc-button>
Expand Down
11 changes: 9 additions & 2 deletions test/integration/__snapshots__/open-scd.test.snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -875,10 +875,17 @@ snapshots["open-scd looks like its snapshot"] =
style="--mdc-theme-primary: var(--mdc-theme-error)"
>
</mwc-button>
<mwc-button
dialogaction="close"
icon=""
label="Close"
slot="secondaryAction"
>
</mwc-button>
<mwc-button
icon="library_add"
label="Add…"
raised=""
label="Add custom extension…"
outlined=""
slot="primaryAction"
trailingicon=""
>
Expand Down

0 comments on commit 9c0c963

Please sign in to comment.