Add Pleroma.Emails.NewUsersDigestEmail setting

This commit is contained in:
Angelina Filippova 2020-03-16 22:36:40 +03:00
parent 7f01e26a2d
commit 619831dbb5

View file

@ -11,9 +11,12 @@
<el-form ref="emailNotifications" :model="emailNotificationsData" :label-width="labelWidth">
<setting :setting-group="emailNotifications" :data="emailNotificationsData"/>
</el-form>
<el-form ref="userEmail" :model="userEmail" :label-width="labelWidth">
<el-form ref="userEmail" :model="userEmailData" :label-width="labelWidth">
<setting :setting-group="userEmail" :data="userEmailData"/>
</el-form>
<el-form ref="newUsersDigestEmail" :model="newUsersDigestEmailData" :label-width="labelWidth">
<setting :setting-group="newUsersDigestEmail" :data="newUsersDigestEmailData"/>
</el-form>
<div class="submit-button-container">
<el-button class="submit-button" type="primary" @click="onSubmit">Submit</el-button>
</div>
@ -65,6 +68,12 @@ export default {
mailerData() {
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Emails.Mailer']) || {}
},
newUsersDigestEmail() {
return this.settings.description.find(setting => setting.key === 'Pleroma.Emails.NewUsersDigestEmail')
},
newUsersDigestEmailData() {
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Emails.NewUsersDigestEmail']) || {}
},
swoosh() {
return this.settings.description.find(setting => setting.group === ':swoosh')
},