mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 20:18:23 -05:00
Rename .js.es6 to .js in the admin application
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import RestModel from "discourse/models/rest";
|
||||
const { getProperties } = Ember;
|
||||
|
||||
export default RestModel.extend({
|
||||
revert() {
|
||||
return ajax(`/admin/customize/email_templates/${this.id}`, {
|
||||
method: "DELETE"
|
||||
}).then(result =>
|
||||
getProperties(result.email_template, "subject", "body", "can_revert")
|
||||
);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user