mirror of
https://github.com/discourse/discourse.git
synced 2025-01-26 15:38:29 +08:00
19 lines
352 B
JavaScript
19 lines
352 B
JavaScript
import DiscourseRoute from 'discourse/routes/discourse';
|
|
|
|
export default DiscourseRoute.extend({
|
|
|
|
model() {
|
|
return this.store.find('queuedPost', {status: 'new'});
|
|
},
|
|
|
|
actions: {
|
|
removePost(post) {
|
|
this.modelFor('queued-posts').removeObject(post);
|
|
},
|
|
|
|
refresh() {
|
|
this.modelFor('queued-posts').refresh();
|
|
}
|
|
}
|
|
});
|