DEV: migrate routes to the new @action pattern (#126)

This commit is contained in:
Andrei Prigorshnev 2022-01-06 12:16:37 +01:00 committed by GitHub
parent 0d8e33c661
commit 62a4eff705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
import DiscourseRoute from "discourse/routes/discourse";
import { action } from "@ember/object";
export default DiscourseRoute.extend({
actions: {
moreSettings() {
this.transitionTo("adminSiteSettingsCategory", "ad_plugin");
},
@action
moreSettings() {
this.transitionTo("adminSiteSettingsCategory", "ad_plugin");
},
});