show alert icon on smtp settings btn in case not done

This commit is contained in:
lesion 2021-10-21 12:21:00 +02:00
parent 396b66e436
commit 81f241dda5
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -52,7 +52,8 @@
SMTP(@close='showSMTP = false')
v-card-actions
v-btn(text @click='showSMTP=true') <v-icon>mdi-email</v-icon> {{$t('admin.show_smtp_setup')}}
v-btn(text @click='showSMTP=true')
<v-icon v-if='showSMTPAlert' color='error'>mdi-alert</v-icon> {{$t('admin.show_smtp_setup')}}
v-btn(text @click='$emit("complete")' color='primary' v-if='setup') {{$t('common.next')}}
v-icon mdi-arrow-right
@ -81,6 +82,9 @@ export default {
},
computed: {
...mapState(['settings']),
showSMTPAlert () {
return !this.setup && !this.settings.admin_email && !this.settings.smtp && !this.settings.smtp.host && !this.settings.smtp.user
},
instance_locale: {
get () { return this.settings.instance_locale },
set (value) { this.setSetting({ key: 'instance_locale', value }) }