discourse/app/assets/javascripts/admin/addon/models/email-settings.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
283 B
JavaScript
Raw Normal View History

2019-11-09 03:13:35 +08:00
import EmberObject from "@ember/object";
2016-07-01 01:55:44 +08:00
import { ajax } from "discourse/lib/ajax";
2019-11-09 03:13:35 +08:00
export default class EmailSettings extends EmberObject {
static find() {
2016-07-01 01:55:44 +08:00
return ajax("/admin/email.json").then(function (settings) {
return EmailSettings.create(settings);
});
}
}