Skip to content

Commit ec22808

Browse files
Merge branch 'development' into country-fix
2 parents 6925a62 + aa99edd commit ec22808

27 files changed

+31
-28
lines changed

app/components/account/contact-info-section.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default Component.extend(FormMixin, {
4848
actions: {
4949
submit() {
5050
this.onValid(() => {
51-
this.submit();
51+
this.sendAction('submit');
5252
});
5353
}
5454
}

app/components/account/password-section.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default Component.extend(FormMixin, {
4949
},
5050
submit() {
5151
this.onValid(() => {
52-
this.changePassword({ passwordCurrent: this.passwordCurrent, passwordNew: this.passwordNew });
52+
this.sendAction('changePassword', { passwordCurrent: this.passwordCurrent, passwordNew: this.passwordNew });
5353
});
5454
}
5555
}

app/components/forms/admin/content/pages-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default Component.extend(FormMixin, {
7979
actions: {
8080
submit(data) {
8181
this.onValid(() => {
82-
this.save(data);
82+
this.sendAction('save', data);
8383
});
8484
},
8585
deletePage(data) {

app/components/forms/admin/content/social-links-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default Component.extend(FormMixin, {
2727
actions: {
2828
submit() {
2929
this.onValid(() => {
30-
this.save();
30+
this.sendAction('save');
3131
});
3232
}
3333
}

app/components/forms/admin/settings/analytics-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Component from '@ember/component';
33
export default Component.extend({
44
actions: {
55
submit() {
6-
this.save();
6+
this.sendAction('save');
77
}
88
}
99
});

app/components/forms/admin/settings/billing.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ export default class Billing extends Component.extend(FormMixin) {
100100
}
101101

102102
@action
103-
submit() {
103+
submit(e) {
104+
e.preventDefault();
104105
this.onValid(() => {
105106
this.save();
106107
});

app/components/forms/admin/settings/images-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export default Component.extend(FormMixin, {
169169
actions: {
170170
submit() {
171171
this.onValid(() => {
172-
this.save();
172+
this.sendAction('save');
173173
});
174174
}
175175
}

app/components/forms/admin/settings/microservices-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default Component.extend(FormMixin, {
3838
actions: {
3939
submit() {
4040
this.onValid(() => {
41-
this.save();
41+
this.sendAction('save');
4242
});
4343
}
4444
}

app/components/forms/admin/settings/payment-gateway-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export default Component.extend(FormMixin, {
253253
'omiseLiveSecret' : null
254254
});
255255
}
256-
this.save();
256+
this.sendAction('save');
257257
});
258258
}
259259
}

app/components/forms/admin/settings/system-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export default Component.extend(FormMixin, {
222222
actions: {
223223
submit() {
224224
this.onValid(() => {
225-
this.save();
225+
this.sendAction('save');
226226
});
227227
}
228228
}

0 commit comments

Comments
 (0)