1
0
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:
Toby Zerner
2015-02-12 14:35:40 +10:30
parent 36787bcf45
commit 2bd5471699
4 changed files with 26 additions and 4 deletions

View File

@@ -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);
}
}
});