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

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

15 lines
336 B
JavaScript
Raw Normal View History

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