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.

15 lines
328 B
JavaScript
Raw Normal View History

2019-11-08 14:13:35 -05:00
import EmberObject from "@ember/object";
2016-06-30 13:55:44 -04:00
import { ajax } from "discourse/lib/ajax";
2019-11-08 14:13:35 -05:00
const EmailSettings = EmberObject.extend({});
EmailSettings.reopenClass({
find() {
2016-06-30 13:55:44 -04:00
return ajax("/admin/email.json").then(function (settings) {
return EmailSettings.create(settings);
});
},
});
export default EmailSettings;