Skip to content

Commit

Permalink
Add 'test' button to SMTP UI to test connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Jul 9, 2022
1 parent dc7b44a commit 83a0e10
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions frontend/src/views/settings/smtp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->

Expand Down Expand Up @@ -211,6 +218,10 @@ export default Vue.extend({
s.showHeaders = true;
this.data.smtp.splice(i, 1, s);
},
testConnection(c) {
alert(c);
},
},
});
</script>
1 change: 1 addition & 0 deletions i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 83a0e10

Please sign in to comment.