Add explicit warning on empty password to SMTP test UI.
This commit is contained in:
parent
b497f52ae7
commit
57dbb9e5db
20 changed files with 56 additions and 7 deletions
|
@ -62,6 +62,7 @@
|
|||
<b-input v-model="item.password"
|
||||
:disabled="item.auth_protocol === 'none'"
|
||||
name="password" type="password"
|
||||
:custom-class="`password-${n}`"
|
||||
:placeholder="$t('settings.mailserver.passwordHelp')"
|
||||
:maxlength="200" />
|
||||
</b-field>
|
||||
|
@ -160,7 +161,7 @@
|
|||
</div>
|
||||
<hr />
|
||||
|
||||
<form @submit.prevent="() => doSMTPTest(item)">
|
||||
<form @submit.prevent="() => doSMTPTest(item, n)">
|
||||
<div class="columns">
|
||||
<template v-if="smtpTestItem === n">
|
||||
<div class="column is-5">
|
||||
|
@ -178,7 +179,7 @@
|
|||
</template>
|
||||
<div class="column has-text-right">
|
||||
<b-button v-if="smtpTestItem === n" class="is-primary"
|
||||
:disabled="isTestEnabled(item)" @click.prevent="() => doSMTPTest(item)">
|
||||
@click.prevent="() => doSMTPTest(item, n)">
|
||||
{{ $t('settings.smtp.sendTest') }}
|
||||
</b-button>
|
||||
<a href="#" v-else class="is-primary" @click.prevent="showTestForm(n)">
|
||||
|
@ -296,7 +297,18 @@ export default Vue.extend({
|
|||
}
|
||||
},
|
||||
|
||||
doSMTPTest(item) {
|
||||
doSMTPTest(item, n) {
|
||||
if (!this.isTestEnabled(item)) {
|
||||
this.$utils.toast(this.$t('settings.smtp.testEnterEmail'), 'is-danger');
|
||||
this.$nextTick(() => {
|
||||
const i = document.querySelector(`.password-${n}`);
|
||||
i.focus();
|
||||
i.select();
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
this.errMsg = '';
|
||||
this.$api.testSMTP({ ...item, email: this.testEmail }).then(() => {
|
||||
this.$utils.toast(this.$t('campaigns.testSent'));
|
||||
|
@ -319,13 +331,13 @@ export default Vue.extend({
|
|||
|
||||
isTestEnabled(item) {
|
||||
if (!item.host || !item.port) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
if (item.auth_protocol !== 'none' && !item.password.trim()) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
return true;
|
||||
},
|
||||
|
||||
fillSettings(n, key) {
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "Naplánovaná",
|
||||
"campaigns.statusChanged": "\"{name}\" je {status}",
|
||||
"campaigns.subject": "Předmět",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "E-maily",
|
||||
"campaigns.testSent": "Testovací zpráva odeslána",
|
||||
"campaigns.timestamps": "Časová razítka",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Odeslat e-mail",
|
||||
"settings.smtp.setCustomHeaders": "Nastavit vlastní záhlaví",
|
||||
"settings.smtp.testConnection": "Ověřit spojení",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "Na e-mail",
|
||||
"settings.title": "Nastavení",
|
||||
"settings.updateAvailable": "Nová aktualizace {version} je k dispozici.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "Geplant",
|
||||
"campaigns.statusChanged": "\"{name}\" ist {status}",
|
||||
"campaigns.subject": "Betreff",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "E-Mails",
|
||||
"campaigns.testSent": "Testnachricht gesendet",
|
||||
"campaigns.timestamps": "Zeitstempel",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "E-mail senden",
|
||||
"settings.smtp.setCustomHeaders": "Benutzerdefinierten Header verwenden",
|
||||
"settings.smtp.testConnection": "Verbindung testen",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "Empfänger E-mail",
|
||||
"settings.title": "Einstellungen",
|
||||
"settings.updateAvailable": "Ein neues Update auf {version} ist verfügbar.",
|
||||
|
|
|
@ -457,6 +457,7 @@
|
|||
"settings.smtp.sendTest": "Send e-mail",
|
||||
"settings.smtp.setCustomHeaders": "Set custom headers",
|
||||
"settings.smtp.testConnection": "Test connection",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "To e-mail",
|
||||
"settings.title": "Settings",
|
||||
"settings.updateAvailable": "A new update {version} is available.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "Agendada",
|
||||
"campaigns.statusChanged": "\"{name}\" está {status}",
|
||||
"campaigns.subject": "Asunto",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "Correos electrónicos de prueba",
|
||||
"campaigns.testSent": "Mensaje de prueba enviado",
|
||||
"campaigns.timestamps": "Marcas de timepo",
|
||||
|
@ -108,8 +109,8 @@
|
|||
"email.unsub": "Des-subscribir",
|
||||
"email.unsubHelp": "¿No quiere recibir estos correos electrónicos?",
|
||||
"email.viewInBrowser": "Ver en el navegador",
|
||||
"forms.formHTMLHelp": "Use este código HTML para mostrar el formulario de subscripción en un sitio web. El formulario debe contener el campo `email` y uno o más campos `l` (UUID de lista). El campo `name` es opcional.",
|
||||
"forms.formHTML": "Formulario HTML",
|
||||
"forms.formHTMLHelp": "Use este código HTML para mostrar el formulario de subscripción en un sitio web. El formulario debe contener el campo `email` y uno o más campos `l` (UUID de lista). El campo `name` es opcional.",
|
||||
"forms.noPublicLists": "No hay listas públicas para generar formularios",
|
||||
"forms.publicLists": "Listas públicas",
|
||||
"forms.publicSubPage": "Página pública de subscripción",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Enviar correo electrónico de prueba",
|
||||
"settings.smtp.setCustomHeaders": "Configurar encabezados personalizados.",
|
||||
"settings.smtp.testConnection": "Probar conexión",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "Correo electrónico del destinatario",
|
||||
"settings.title": "Configuraciones",
|
||||
"settings.updateAvailable": "Una actualización {version} está disponible.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "Scheduled",
|
||||
"campaigns.statusChanged": "\"{name}\" is {status}",
|
||||
"campaigns.subject": "Subject",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "E-mails",
|
||||
"campaigns.testSent": "Test message sent",
|
||||
"campaigns.timestamps": "Timestamps",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Lähetä e-mail",
|
||||
"settings.smtp.setCustomHeaders": "Set custom headers",
|
||||
"settings.smtp.testConnection": "Testaa yhteyttä",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "Vastaanottajan e-mail",
|
||||
"settings.title": "Settings",
|
||||
"settings.updateAvailable": "A new update {version} is available.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "planifiée",
|
||||
"campaigns.statusChanged": "La campagne « {name} » est {status}",
|
||||
"campaigns.subject": "Objet",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "E-mails de test",
|
||||
"campaigns.testSent": "Message de test envoyé",
|
||||
"campaigns.timestamps": "Horodatages",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Envoyer un e-mail",
|
||||
"settings.smtp.setCustomHeaders": "Définir des en-têtes personnalisés",
|
||||
"settings.smtp.testConnection": "Tester la connexion",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "E-mail du destinataire",
|
||||
"settings.title": "Paramètres",
|
||||
"settings.updateAvailable": "Une nouvelle version ({version}) est disponible.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "Ütemezett",
|
||||
"campaigns.statusChanged": "\"{name}\" van {status}",
|
||||
"campaigns.subject": "Tárgy",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "E-mail",
|
||||
"campaigns.testSent": "Tesztüzenet elküldve",
|
||||
"campaigns.timestamps": "Időbélyegek",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Send e-mail",
|
||||
"settings.smtp.setCustomHeaders": "Egyéni fejlécek beállítása",
|
||||
"settings.smtp.testConnection": "Test connection",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "To e-mail",
|
||||
"settings.title": "Beállítások",
|
||||
"settings.updateAvailable": "Új frissítés {version} elérhető.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "Programmata",
|
||||
"campaigns.statusChanged": "\"{name}\" e {status}",
|
||||
"campaigns.subject": "Oggetto",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "Emails di prova",
|
||||
"campaigns.testSent": "Messaggio di prova inviato",
|
||||
"campaigns.timestamps": "Marcatura temporale ",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Send e-mail",
|
||||
"settings.smtp.setCustomHeaders": "Definisci intestazioni personalizzate",
|
||||
"settings.smtp.testConnection": "Test connection",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "To e-mail",
|
||||
"settings.title": "Impostazioni",
|
||||
"settings.updateAvailable": "È a disposizione una nuova versione {version}.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "スケジュールされている",
|
||||
"campaigns.statusChanged": "\"{name}\" は {status}",
|
||||
"campaigns.subject": "件名",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "メール",
|
||||
"campaigns.testSent": "テストメッセージ送信済み",
|
||||
"campaigns.timestamps": "タイムスタンプ",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Send e-mail",
|
||||
"settings.smtp.setCustomHeaders": "カスタムヘッダー設定",
|
||||
"settings.smtp.testConnection": "接続テスト",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "メール宛",
|
||||
"settings.title": "設定",
|
||||
"settings.updateAvailable": "新しい {version} の更新が可能です。",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "ആസൂത്രണം ചെയ്തു",
|
||||
"campaigns.statusChanged": "\"{name}\" {status} ആണ്",
|
||||
"campaigns.subject": "വിഷയം",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "ഈ-മെയിലുകൾ",
|
||||
"campaigns.testSent": "ടെസ്റ്റ് സന്ദേശം അയച്ചു",
|
||||
"campaigns.timestamps": "സമയം",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Send e-mail",
|
||||
"settings.smtp.setCustomHeaders": "ഇഷ്ടാനുസൃത തലക്കെട്ടുകൾ നൽകുക",
|
||||
"settings.smtp.testConnection": "Test connection",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "To e-mail",
|
||||
"settings.title": "ക്രമീകരണങ്ങൾ",
|
||||
"settings.updateAvailable": "A new update {version} is available.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "Gepland",
|
||||
"campaigns.statusChanged": "\"{name}\" is {status}",
|
||||
"campaigns.subject": "Onderwerp",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "E-mails",
|
||||
"campaigns.testSent": "Testbericht verzonden",
|
||||
"campaigns.timestamps": "Tijdstippen",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Stuur e-mail",
|
||||
"settings.smtp.setCustomHeaders": "Stel custom headers in",
|
||||
"settings.smtp.testConnection": "Test verbinding",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "Naar e-mail",
|
||||
"settings.title": "Instellingen",
|
||||
"settings.updateAvailable": "Een nieuwe update {version} is beschikbaar.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "Zaplanowana",
|
||||
"campaigns.statusChanged": "\"{name}\" jest {status}",
|
||||
"campaigns.subject": "Temat",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "E-maile",
|
||||
"campaigns.testSent": "Wiadomość testowa wysłana",
|
||||
"campaigns.timestamps": "Sygnatury czasowe",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Send e-mail",
|
||||
"settings.smtp.setCustomHeaders": "Ustaw niestandardowe nagłówki",
|
||||
"settings.smtp.testConnection": "Test connection",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "To e-mail",
|
||||
"settings.title": "Ustawienia",
|
||||
"settings.updateAvailable": "Nowa wersja {version} jest dostępna.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "Agendado",
|
||||
"campaigns.statusChanged": "O status da campanha \"{name}\" é {status}",
|
||||
"campaigns.subject": "Assunto",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "E-mails",
|
||||
"campaigns.testSent": "Mensagem de teste enviada",
|
||||
"campaigns.timestamps": "Data e hora",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Enviar e-mail",
|
||||
"settings.smtp.setCustomHeaders": "Definir cabeçalhos personalizados",
|
||||
"settings.smtp.testConnection": "Testar conexões",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "To e-mail",
|
||||
"settings.title": "Configurações",
|
||||
"settings.updateAvailable": "Atualização: a nova versão {version} já está disponível.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "Agendada",
|
||||
"campaigns.statusChanged": "\"{name}\" está {status}",
|
||||
"campaigns.subject": "Assunto",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "E-mails",
|
||||
"campaigns.testSent": "Mensagem de teste enviada",
|
||||
"campaigns.timestamps": "Carimbo de hora",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Send e-mail",
|
||||
"settings.smtp.setCustomHeaders": "Colocar headers customizados",
|
||||
"settings.smtp.testConnection": "Test connection",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "To e-mail",
|
||||
"settings.title": "Definições",
|
||||
"settings.updateAvailable": "A new update {version} is available.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "Programat",
|
||||
"campaigns.statusChanged": "\"{nume}\" este {stare}",
|
||||
"campaigns.subject": "Subiect",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "Emailuri",
|
||||
"campaigns.testSent": "Mesaju de test a fost trimis",
|
||||
"campaigns.timestamps": "Marcaje de timp",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Send e-mail",
|
||||
"settings.smtp.setCustomHeaders": "Setează anteturi personalizate",
|
||||
"settings.smtp.testConnection": "Test connection",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "To e-mail",
|
||||
"settings.title": "Setări",
|
||||
"settings.updateAvailable": "Este disponibilă o nouă actualizare {versiune}.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "Запланирована",
|
||||
"campaigns.statusChanged": "\"{name}\" {status}",
|
||||
"campaigns.subject": "Тема",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "E-mails",
|
||||
"campaigns.testSent": "Тестовое сообщение отправлено",
|
||||
"campaigns.timestamps": "Метки времени",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Send e-mail",
|
||||
"settings.smtp.setCustomHeaders": "Установка настраиваемых заголовков",
|
||||
"settings.smtp.testConnection": "Test connection",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "To e-mail",
|
||||
"settings.title": "Параметры",
|
||||
"settings.updateAvailable": "Доступна новая версия: {version}.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "Zamanlandı",
|
||||
"campaigns.statusChanged": "\"{name}\" durumu {status}",
|
||||
"campaigns.subject": "Konu",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "E-postalar",
|
||||
"campaigns.testSent": "Test mesajı gönderildi",
|
||||
"campaigns.timestamps": "Zaman etiketi",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Send e-mail",
|
||||
"settings.smtp.setCustomHeaders": "Özel başlık tanımla",
|
||||
"settings.smtp.testConnection": "Test connection",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "To e-mail",
|
||||
"settings.title": "Ayarlar",
|
||||
"settings.updateAvailable": "Yeni bir güncel sürüm {version} mevcuttur.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "Đã lên lịch",
|
||||
"campaigns.statusChanged": "\"{name}\" là {status}",
|
||||
"campaigns.subject": "Tiêu đề",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "E-mails",
|
||||
"campaigns.testSent": "Gửi tin nhắn thử",
|
||||
"campaigns.timestamps": "Dấu thời gian",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Send e-mail",
|
||||
"settings.smtp.setCustomHeaders": "Đặt tiêu đề tùy chỉnh",
|
||||
"settings.smtp.testConnection": "Test connection",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "To e-mail",
|
||||
"settings.title": "Cài đặt",
|
||||
"settings.updateAvailable": "Đã có bản cập nhật mới {version}.",
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
"campaigns.status.scheduled": "已安排",
|
||||
"campaigns.statusChanged": " “{name}”是 {status}",
|
||||
"campaigns.subject": "主题",
|
||||
"campaigns.testDisabled": "Enter password to test",
|
||||
"campaigns.testEmails": "电子邮件",
|
||||
"campaigns.testSent": "已发送测试消息",
|
||||
"campaigns.timestamps": "时间戳",
|
||||
|
@ -457,6 +458,7 @@
|
|||
"settings.smtp.sendTest": "Send e-mail",
|
||||
"settings.smtp.setCustomHeaders": "设置自定义标头",
|
||||
"settings.smtp.testConnection": "Test connection",
|
||||
"settings.smtp.testEnterEmail": "Enter password to test",
|
||||
"settings.smtp.toEmail": "To e-mail",
|
||||
"settings.title": "设置",
|
||||
"settings.updateAvailable": "有新的更新 {version} 可用。",
|
||||
|
|
Loading…
Reference in a new issue