mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 20:01:11 +08:00
16 lines
326 B
Plaintext
16 lines
326 B
Plaintext
|
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);
|
||
|
}
|
||
|
});
|