mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 16:53:44 +08:00
48193767bf
Automatically generated by `eslint --fix` to satisfy the updated configuration
17 lines
497 B
JavaScript
17 lines
497 B
JavaScript
import Controller from "@ember/controller";
|
|
import { action } from "@ember/object";
|
|
import { sort } from "@ember/object/computed";
|
|
import { inject as service } from "@ember/service";
|
|
|
|
export default class AdminCustomizeEmailTemplatesController extends Controller {
|
|
@service router;
|
|
|
|
titleSorting = ["title"];
|
|
@sort("emailTemplates", "titleSorting") sortedTemplates;
|
|
|
|
@action
|
|
onSelectTemplate(template) {
|
|
this.router.transitionTo("adminCustomizeEmailTemplates.edit", template);
|
|
}
|
|
}
|