@@ -66,7 +66,10 @@ export default class TemplatesPlugin extends LitElement {
66
66
67
67
openLNodeTypeWizard ( identity : string ) : void {
68
68
const wizard = lNodeTypeWizard ( identity , this . doc ) ;
69
- if ( wizard ) this . dispatchEvent ( newWizardEvent ( wizard ) ) ;
69
+ if ( wizard )
70
+ this . dispatchEvent (
71
+ newWizardEvent ( ( ) => lNodeTypeWizard ( identity , this . doc ) ! )
72
+ ) ;
70
73
}
71
74
72
75
async openCreateDOTypeWizard ( ) : Promise < void > {
@@ -84,12 +87,18 @@ export default class TemplatesPlugin extends LitElement {
84
87
85
88
openDOTypeWizard ( identity : string ) : void {
86
89
const wizard = dOTypeWizard ( identity , this . doc ) ;
87
- if ( wizard ) this . dispatchEvent ( newWizardEvent ( wizard ) ) ;
90
+ if ( wizard )
91
+ this . dispatchEvent (
92
+ newWizardEvent ( ( ) => dOTypeWizard ( identity , this . doc ) ! )
93
+ ) ;
88
94
}
89
95
90
96
openDATypeWizard ( identity : string ) : void {
91
97
const wizard = editDaTypeWizard ( identity , this . doc ) ;
92
- if ( wizard ) this . dispatchEvent ( newWizardEvent ( wizard ) ) ;
98
+ if ( wizard )
99
+ this . dispatchEvent (
100
+ newWizardEvent ( ( ) => editDaTypeWizard ( identity , this . doc ) ! )
101
+ ) ;
93
102
}
94
103
95
104
async openCreateDATypeWizard ( ) : Promise < void > {
@@ -107,7 +116,10 @@ export default class TemplatesPlugin extends LitElement {
107
116
108
117
openEnumTypeWizard ( identity : string ) : void {
109
118
const wizard = eNumTypeEditWizard ( identity , this . doc ) ;
110
- if ( wizard ) this . dispatchEvent ( newWizardEvent ( wizard ) ) ;
119
+ if ( wizard )
120
+ this . dispatchEvent (
121
+ newWizardEvent ( ( ) => eNumTypeEditWizard ( identity , this . doc ) ! )
122
+ ) ;
111
123
}
112
124
113
125
async openCreateEnumWizard ( ) : Promise < void > {
0 commit comments