mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 07:51:36 +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);
|
|
}
|
|
});
|