mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 11:43:44 +08:00
16 lines
326 B
JavaScript
16 lines
326 B
JavaScript
import WatchedWord from 'admin/models/watched-word';
|
|
|
|
export default Discourse.Route.extend({
|
|
queryParams: {
|
|
filter: { replace: true }
|
|
},
|
|
|
|
model() {
|
|
return WatchedWord.findAll();
|
|
},
|
|
|
|
afterModel(watchedWordsList) {
|
|
this.controllerFor('adminWatchedWords').set('allWatchedWords', watchedWordsList);
|
|
}
|
|
});
|