REFACTOR: Remove Discourse.Model

This commit is contained in:
Robin Ward
2019-11-08 14:13:35 -05:00
parent fa71919693
commit f03edb36be
35 changed files with 90 additions and 96 deletions
@@ -1,7 +1,8 @@
import { ajax } from "discourse/lib/ajax";
import { extractError } from "discourse/lib/ajax-error";
import EmberObject from "@ember/object";
const Backup = Discourse.Model.extend({
const Backup = EmberObject.extend({
destroy() {
return ajax("/admin/backups/" + this.filename, { type: "DELETE" });
},