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

15 lines
336 B
Plaintext
Raw Normal View History

2018-06-15 23:03:24 +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() {
2018-06-15 23:03:24 +08:00
return ajax("/admin/email.json").then(function(settings) {
return EmailSettings.create(settings);
});
}
});
export default EmailSettings;