Rename .js.es6 to .js in the admin application

This commit is contained in:
Robin Ward
2020-03-13 17:03:08 -04:00
parent ac48c4e562
commit e40e06d78c
269 changed files with 2 additions and 1 deletions
@@ -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")
);
}
});