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

Failed to ignore revisions in .git-blame-ignore-revs.

15 lines
336 B
JavaScript
Raw Normal View History

2018-06-15 11:03:24 -04:00
import { ajax } from "discourse/lib/ajax";
2019-11-08 14:13:35 -05:00
import EmberObject from "@ember/object";
const EmailSettings = EmberObject.extend({});
EmailSettings.reopenClass({
find: function() {
2018-06-15 11:03:24 -04:00
return ajax("/admin/email.json").then(function(settings) {
return EmailSettings.create(settings);
});
}
});
export default EmailSettings;