mirror of
https://ghfast.top/https://github.com/discourse/discourse-docs.git
synced 2026-07-16 11:36:36 +08:00
24 lines
586 B
JavaScript
24 lines
586 B
JavaScript
import Controller, { inject as controller } from "@ember/controller";
|
|
import { action } from "@ember/object";
|
|
|
|
export default class DocsController extends Controller {
|
|
@controller("docs.index") indexController;
|
|
|
|
@action
|
|
updateSelectedCategories(category) {
|
|
this.indexController.send("updateSelectedCategories", category);
|
|
return false;
|
|
}
|
|
|
|
@action
|
|
updateSelectedTags(tag) {
|
|
this.indexController.send("updateSelectedTags", tag);
|
|
return false;
|
|
}
|
|
|
|
@action
|
|
performSearch(term) {
|
|
this.indexController.send("performSearch", term);
|
|
return false;
|
|
}
|
|
}
|