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

12 lines
266 B
Plaintext
Raw Normal View History

2016-04-01 05:33:25 +08:00
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;