Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Added new top-level bulk email settings
Browse files Browse the repository at this point in the history
no issue
  • Loading branch information
rishabhgrg committed Nov 13, 2019
1 parent 2fd85c8 commit 45bb968
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/models/setting.js
Expand Up @@ -38,5 +38,6 @@ export default Model.extend(ValidationEngine, {
twitterImage: attr('string'),
ogTitle: attr('string'),
ogDescription: attr('string'),
ogImage: attr('string')
ogImage: attr('string'),
bulkEmailSettings: attr('json-string')
});
2 changes: 1 addition & 1 deletion app/services/settings.js
Expand Up @@ -27,7 +27,7 @@ export default Service.extend(_ProxyMixin, ValidationEngine, {
_loadSettings() {
if (!this._loadingPromise) {
this._loadingPromise = this.store
.queryRecord('setting', {type: 'blog,theme,private,members'})
.queryRecord('setting', {type: 'blog,theme,private,members,bulk_email'})
.then((settings) => {
this._loadingPromise = null;
return settings;
Expand Down
10 changes: 10 additions & 0 deletions mirage/fixtures/settings.js
Expand Up @@ -182,5 +182,15 @@ export default [
created_by: 1,
updated_at: '2019-10-09T09:49:00.000Z',
updated_by: 1
},
{
id: 24,
type: 'bulk_email',
key: 'bulk_email_settings',
value: '{"provider":"mailgun","apiKey":"","domain":"","baseUrl":""}',
created_at: '2019-10-09T09:49:00.000Z',
created_by: 1,
updated_at: '2019-10-09T09:49:00.000Z',
updated_by: 1
}
];

0 comments on commit 45bb968

Please sign in to comment.