mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
minor
This commit is contained in:
parent
c9bf3af29e
commit
87ec9c579d
1 changed files with 7 additions and 4 deletions
|
@ -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,11 +34,14 @@ 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
|
||||
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,
|
||||
loading: false,
|
||||
|
|
Loading…
Reference in a new issue