mirror of
https://github.com/knadh/listmonk.git
synced 2024-11-10 09:02:36 +08:00
Add 'test' button to SMTP UI to test connections.
This commit is contained in:
parent
dc7b44a7cc
commit
83a0e1057e
2 changed files with 12 additions and 0 deletions
|
@ -150,6 +150,13 @@
|
|||
</div>
|
||||
</div>
|
||||
</div><!-- second container column -->
|
||||
<div class="columns">
|
||||
<div class="column has-text-right">
|
||||
<b-button class="is-primary" @click.prevent="testConnection(item)">
|
||||
{{ $t('settings.smtp.testConnection') }}
|
||||
</b-button>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- block -->
|
||||
</div><!-- mail-servers -->
|
||||
|
||||
|
@ -211,6 +218,10 @@ export default Vue.extend({
|
|||
s.showHeaders = true;
|
||||
this.data.smtp.splice(i, 1, s);
|
||||
},
|
||||
|
||||
testConnection(c) {
|
||||
alert(c);
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -453,6 +453,7 @@
|
|||
"settings.smtp.retries": "Retries",
|
||||
"settings.smtp.retriesHelp": "Number of times to retry when a message fails.",
|
||||
"settings.smtp.setCustomHeaders": "Set custom headers",
|
||||
"settings.smtp.testConnection": "Test connection",
|
||||
"settings.title": "Settings",
|
||||
"settings.updateAvailable": "A new update {version} is available.",
|
||||
"subscribers.advancedQuery": "Advanced",
|
||||
|
|
Loading…
Reference in a new issue