minor
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
@blur="save('admin_email', admin_email )"
|
||||
:label="$t('admin.admin_email')"
|
||||
:rules="$validators.email")
|
||||
|
||||
p {{smtp}}
|
||||
v-text-field(v-model='smtp.host'
|
||||
:label="$t('admin.smtp_hostname')"
|
||||
:rules="[$validators.required('admin.smtp_hostname')]")
|
||||
@@ -34,10 +34,13 @@ import { mapActions, mapState } from 'vuex'
|
||||
export default {
|
||||
data ({ $store }) {
|
||||
const smtp = { host: '', auth: { user: '', pass: '' } }
|
||||
if ($store.state.settings.smtp && $store.state.settings.smtp.auth) {
|
||||
console.error($store.state.settings)
|
||||
if ($store.state.settings.smtp) {
|
||||
smtp.host = $store.state.settings.smtp.host
|
||||
smtp.auth.user = $store.state.settings.smtp.auth.user
|
||||
smtp.auth.pass = $store.state.settings.smtp.auth.pass
|
||||
if ($store.state.settings.smtp.auth) {
|
||||
smtp.auth.user = $store.state.settings.smtp.auth.user
|
||||
smtp.auth.pass = $store.state.settings.smtp.auth.pass
|
||||
}
|
||||
}
|
||||
return {
|
||||
isValid: false,
|
||||
|
||||
Reference in New Issue
Block a user