@progressive-development/pd-wizard 0.1.66 → 0.1.67

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/PdWizard.js +4 -0
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "order",
15
15
  "steps"
16
16
  ],
17
- "version": "0.1.66",
17
+ "version": "0.1.67",
18
18
  "main": "index.js",
19
19
  "module": "index.js",
20
20
  "scripts": {
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>`
@@ -295,6 +298,7 @@ export class PdWizard extends LitElement {
295
298
 
296
299
  _submit() {
297
300
  this.dispatchEvent(new CustomEvent('submit-wizard'));
301
+ this._submited = true;
298
302
  }
299
303
 
300
304
  _closeWizard() {