mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
Implement discussion deletion
This commit is contained in:
@@ -54,6 +54,13 @@ export default Ember.Controller.extend(UseComposer, Paneable, {
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
discussionRemoved: function(discussion) {
|
||||
if (this.get('controllers.discussion.model') === discussion) {
|
||||
this.transitionToRoute('index');
|
||||
}
|
||||
this.get('index').send('discussionRemoved', discussion);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user