mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
18 lines
394 B
JavaScript
18 lines
394 B
JavaScript
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);
|
|
}
|
|
}
|
|
});
|