File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ export function getMultiplier(input: WizardInput): string | null {
229
229
export type WizardMenuActor = ( ) => WizardAction [ ] ;
230
230
231
231
/** User interactions rendered in the wizard-dialog menu */
232
- interface MenuAction {
232
+ export interface MenuAction {
233
233
label : string ;
234
234
icon ?: string ;
235
235
action : WizardMenuActor ;
Original file line number Diff line number Diff line change @@ -163,11 +163,13 @@ export class WizardDialog extends LitElement {
163
163
164
164
const wizardActions = action ( ) ;
165
165
166
- wizardActions . forEach ( wa =>
167
- isWizardFactory ( wa )
168
- ? this . dispatchEvent ( newSubWizardEvent ( wa ) )
169
- : this . dispatchEvent ( newActionEvent ( wa ) )
170
- ) ;
166
+ wizardActions . forEach ( wa => {
167
+ if ( isWizardFactory ( wa ) ) this . dispatchEvent ( newSubWizardEvent ( wa ) ) ;
168
+ else {
169
+ this . dispatchEvent ( newWizardEvent ( ) ) ;
170
+ this . dispatchEvent ( newActionEvent ( wa ) ) ;
171
+ }
172
+ } ) ;
171
173
return true ;
172
174
}
173
175
You can’t perform that action at this time.
0 commit comments