@progressive-development/pd-wizard 0.1.66 → 0.1.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/PdWizard.js +6 -1
package/package.json
CHANGED
package/src/PdWizard.js
CHANGED
|
@@ -185,6 +185,7 @@ export class PdWizard extends LitElement {
|
|
|
185
185
|
wizardSteps: { Array },
|
|
186
186
|
logo: { type: Object },
|
|
187
187
|
panelWizard: { type: Boolean },
|
|
188
|
+
_submited: { type: Boolean, state: true },
|
|
188
189
|
};
|
|
189
190
|
}
|
|
190
191
|
|
|
@@ -194,6 +195,7 @@ export class PdWizard extends LitElement {
|
|
|
194
195
|
this.currentNumber = -99;
|
|
195
196
|
this.wizardSteps = [];
|
|
196
197
|
this.panelWizard = false;
|
|
198
|
+
this._submited = false;
|
|
197
199
|
}
|
|
198
200
|
|
|
199
201
|
render() {
|
|
@@ -273,6 +275,7 @@ export class PdWizard extends LitElement {
|
|
|
273
275
|
${this.currentNumber === this.wizardSteps.length
|
|
274
276
|
? html`<pd-button
|
|
275
277
|
primary
|
|
278
|
+
?disabled="${this._submited}"
|
|
276
279
|
@button-clicked="${this._submit}"
|
|
277
280
|
text="${msg('Absenden', {desc: '#pd.wizard.submit#'})}"
|
|
278
281
|
></pd-button>`
|
|
@@ -294,7 +297,9 @@ export class PdWizard extends LitElement {
|
|
|
294
297
|
}
|
|
295
298
|
|
|
296
299
|
_submit() {
|
|
297
|
-
|
|
300
|
+
const detail = {submited: false};
|
|
301
|
+
this.dispatchEvent(new CustomEvent('submit-wizard', {detail}));
|
|
302
|
+
this._submited = detail.submited;
|
|
298
303
|
}
|
|
299
304
|
|
|
300
305
|
_closeWizard() {
|