Skip to content

Commit c82286a

Browse files
author
Hieu Lam - TMA
authored
fix-9077: Row has been duplicated when edit badge of an existing event (#9079)
* fix-9077: Row has been duplicated when edit badge of an existing event * fix-9077: Row has been duplicated when edit badge of an existing event
1 parent 29c89ba commit c82286a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

app/components/forms/wizard/attendee-step.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export default Component.extend(FormMixin, EventWizardMixin, {
6969
},
7070

7171
prepareCustomFormsForSave() {
72+
this.set('loading', true);
7273
this.data.forms.forEach(_form => {
7374
const { formID, customForms, ticketsDetails } = _form;
7475
customForms.forEach(field => {

app/components/forms/wizard/badge-step.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export default Component.extend(FormMixin, EventWizardMixin, {
130130
},
131131

132132
prepareCustomFormsForSave() {
133+
this.set('loading', true);
133134
this.data.badges.forEach(_badge => {
134135
const { badgeID, badgeForms, ticketsDetails } = _badge;
135136
badgeForms.forEach(field => {

app/components/forms/wizard/wizard-footer.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="ui grid">
22
<div class="sixteen wide column {{unless @device.isMobile 'right aligned'}}">
33
{{#if @event.identifier}}
4-
<LinkTo @route="events.view.index" @model={{@event.identifier}} class="ui red button right labeled icon small right aligned mt-4 {{if this.isUserUnverified 'disabled'}} button">
4+
<LinkTo @route="events.view.index" @model={{@event.identifier}} class="ui red button right labeled icon small right aligned mt-4 {{if @loading 'disabled'}} {{if this.isUserUnverified 'disabled'}} button">
55
{{t 'Cancel'}} <i class="close icon"></i>
66
</LinkTo>
77
{{else}}
@@ -10,7 +10,7 @@
1010
</LinkTo>
1111
{{/if}}
1212
{{#if (not @first)}}
13-
<button class="ui left labeled small icon button {{if @isLoading 'disabled'}}" type="button" {{action @move 'backwards'}}>
13+
<button class="ui left labeled small icon button {{if @loading 'disabled'}}" type="button" {{action @move 'backwards'}}>
1414
{{t 'Previous'}}
1515
<i class="left chevron icon"></i>
1616
</button>

0 commit comments

Comments
 (0)