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

12 lines
266 B
Text
Raw Normal View History

const EmailSettings = Discourse.Model.extend({});
EmailSettings.reopenClass({
find: function() {
return Discourse.ajax("/admin/email.json").then(function (settings) {
return EmailSettings.create(settings);
});
}
});
export default EmailSettings;