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: {
|
||||
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({});
|
||||
},
|
||||
|
||||
|
|
Laden …
In neuem Issue referenzieren