1
0
Fork 0

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({});
},