mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 02:41:09 +08:00
FEATURE: Can edit category/host relationships for embedding
This commit is contained in:
@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user