Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
fixed issue that prevented you adding params or endpoints when there were none to begin with
Dieser Commit ist enthalten in:
Ursprung
06b5e28ced
Commit
582e2cca42
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
|
@ -11,6 +11,9 @@ export default Ember.Controller.extend({
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
addParam() {
|
addParam() {
|
||||||
|
if (this.get('api.authParams') == undefined) {
|
||||||
|
this.set('api.authParams',[]);
|
||||||
|
};
|
||||||
this.get('api.authParams').pushObject({});
|
this.get('api.authParams').pushObject({});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -19,6 +22,9 @@ export default Ember.Controller.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
addEndpoint() {
|
addEndpoint() {
|
||||||
|
if (this.get('api.endpoints') == undefined) {
|
||||||
|
this.set('api.endpoints',[]);
|
||||||
|
};
|
||||||
this.get('api.endpoints').pushObject({});
|
this.get('api.endpoints').pushObject({});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren