0
0
Fork 1
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:
Robert Barrow 2019-05-31 23:25:22 +01:00
Ursprung 06b5e28ced
Commit 582e2cca42

Datei anzeigen

@ -11,6 +11,9 @@ export default Ember.Controller.extend({
actions: {
addParam() {
if (this.get('api.authParams') == undefined) {
this.set('api.authParams',[]);
};
this.get('api.authParams').pushObject({});
},
@ -19,6 +22,9 @@ export default Ember.Controller.extend({
},
addEndpoint() {
if (this.get('api.endpoints') == undefined) {
this.set('api.endpoints',[]);
};
this.get('api.endpoints').pushObject({});
},