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

13 lines
299 B
Plaintext
Raw Normal View History

2016-06-30 13:55:44 -04:00
import { ajax } from 'discourse/lib/ajax';
const EmailSettings = Discourse.Model.extend({});
EmailSettings.reopenClass({
find: function() {
2016-06-30 13:55:44 -04:00
return ajax("/admin/email.json").then(function (settings) {
return EmailSettings.create(settings);
});
}
});
export default EmailSettings;