Skip to content

Commit

Permalink
changed the helptext a bit to make it more usefull for novice users
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Feb 11, 2024
1 parent 0fc372f commit 87d7a78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/components/notifications/SMTP.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
<input id="hostname" v-model="$parent.notification.smtpHost" type="text" class="form-control" required>
</div>

<div class="form-text">{{ $t("HostnameDesc") }}</div>

<i18n-t tag="div" keypath="Either enter the hostname of the server you want to connect to or localhost if you intend to use a locally configured mail transfer agent" class="form-text">
<template #localhost>
<code>localhost</code>

Check failure on line 10 in src/components/notifications/SMTP.vue

View workflow job for this annotation

GitHub Actions / check-linters

Trailing spaces not allowed

This comment has been minimized.

Copy link
@Saibamen

Saibamen Mar 6, 2024

Contributor

@CommanderStorm: Please fix linter

This comment has been minimized.

Copy link
@Saibamen

Saibamen Mar 6, 2024

Contributor

Sorry, it was fixed in f37f55e

</template>
<template #local_mta>
<a href="https://wikipedia.org/wiki/Mail_Transfer_Agent" target="_blank">{{ $t("locally configured mail transfer agent") }}</a>

Check failure on line 13 in src/components/notifications/SMTP.vue

View workflow job for this annotation

GitHub Actions / check-linters

Trailing spaces not allowed
</template>
</i18n-t>
<div class="mb-3">
<label for="port" class="form-label">{{ $t("Port") }}</label>
<input id="port" v-model="$parent.notification.smtpPort" type="number" class="form-control" required min="0" max="65535" step="1">
Expand Down
3 changes: 2 additions & 1 deletion src/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
"Friendly Name": "Friendly Name",
"URL": "URL",
"Hostname": "Hostname",
"HostnameDesc": "Either enter the hostname of the SMTP server you want to use or localhost if you intend to use a locally configured MTA.",
"locally configured mail transfer agent": "locally configured mail transfer agent",
"Either enter the hostname of the server you want to connect to or localhost if you intend to use a locally configured mail transfer agent": "Either enter the hostname of the server you want to connect to or {localhost} if you intend to use a {local_mta}",
"Port": "Port",
"Heartbeat Interval": "Heartbeat Interval",
"Request Timeout": "Request Timeout",
Expand Down

0 comments on commit 87d7a78

Please sign in to comment.