2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00
discourse/app/assets/javascripts/admin/controllers/admin-embedding.js.es6

19 lines
394 B
Text
Raw Normal View History

export default Ember.Controller.extend({
embedding: null,
actions: {
saveChanges() {
this.get('embedding').update({});
},
addHost() {
const host = this.store.createRecord('embeddable-host');
this.get('embedding.embeddable_hosts').pushObject(host);
},
deleteHost(host) {
this.get('embedding.embeddable_hosts').removeObject(host);
}
}
});