@@ -22,7 +22,6 @@ import {
22
22
getValue ,
23
23
identity ,
24
24
isPublic ,
25
- newActionEvent ,
26
25
newSubWizardEvent ,
27
26
newWizardEvent ,
28
27
patterns ,
@@ -139,7 +138,7 @@ function dOWizard(options: WizardOptions): Wizard | undefined {
139
138
title ,
140
139
action ,
141
140
type ,
142
- deleteButton ,
141
+ menuActions ,
143
142
name ,
144
143
desc ,
145
144
accessControl ,
@@ -149,24 +148,13 @@ function dOWizard(options: WizardOptions): Wizard | undefined {
149
148
get ( 'do.wizard.title.edit' ) ,
150
149
updateDoAction ( DO ) ,
151
150
DO . getAttribute ( 'type' ) ,
152
- html `< mwc-button
153
- icon ="delete "
154
- trailingIcon
155
- label ="${ translate ( 'remove' ) } "
156
- @click =${ ( e : MouseEvent ) => {
157
- e . target ! . dispatchEvent ( newWizardEvent ( ) ) ;
158
- e . target ! . dispatchEvent (
159
- newActionEvent ( {
160
- old : {
161
- parent : DO . parentElement ! ,
162
- element : DO ,
163
- reference : DO . nextSibling ,
164
- } ,
165
- } )
166
- ) ;
167
- } }
168
- fullwidth
169
- > </ mwc-button > ` ,
151
+ [
152
+ {
153
+ icon : 'delete' ,
154
+ label : get ( 'remove' ) ,
155
+ action : remove ( DO ) ,
156
+ } ,
157
+ ] ,
170
158
DO . getAttribute ( 'name' ) ,
171
159
DO . getAttribute ( 'desc' ) ,
172
160
DO . getAttribute ( 'accessControl' ) ,
@@ -176,7 +164,7 @@ function dOWizard(options: WizardOptions): Wizard | undefined {
176
164
get ( 'do.wizard.title.add' ) ,
177
165
createDoAction ( ( < CreateOptions > options ) . parent ) ,
178
166
null ,
179
- html `` ,
167
+ undefined ,
180
168
'' ,
181
169
null ,
182
170
null ,
@@ -192,8 +180,8 @@ function dOWizard(options: WizardOptions): Wizard | undefined {
192
180
title,
193
181
element : DO ?? undefined ,
194
182
primary : { icon : '' , label : get ( 'save' ) , action } ,
183
+ menuActions,
195
184
content : [
196
- deleteButton ,
197
185
html `< wizard-textfield
198
186
label ="name "
199
187
.maybeValue =${ name }
0 commit comments