mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
fix: do not update SMTP port on user custom port, fix #471
This commit is contained in:
parent
412f8cc5f0
commit
f9d9badd24
1 changed files with 4 additions and 1 deletions
|
@ -73,8 +73,11 @@ export default {
|
||||||
computed: mapState(['settings']),
|
computed: mapState(['settings']),
|
||||||
watch: {
|
watch: {
|
||||||
'smtp.secure' (value) {
|
'smtp.secure' (value) {
|
||||||
|
console.error(this.smtp.port)
|
||||||
|
if ([465, 587].includes(this.smtp.port) || !this.smtp.port) {
|
||||||
this.smtp.port = value ? 465 : 587
|
this.smtp.port = value ? 465 : 587
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['setSetting']),
|
...mapActions(['setSetting']),
|
||||||
|
|
Loading…
Reference in a new issue