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