testversand
This commit is contained in:
@@ -949,13 +949,15 @@ export function initEditor() {
|
||||
let html = '<option value="">Standard (System)</option>';
|
||||
smtpProfileOptions.forEach(opt => {
|
||||
const label = opt.label || opt.smtp_host || 'Profil';
|
||||
html += `<option value="${opt.id}">${escapeHtml(label)}</option>`;
|
||||
const suffix = opt.is_default ? ' (Standard)' : '';
|
||||
html += `<option value="${opt.id}">${escapeHtml(label + suffix)}</option>`;
|
||||
});
|
||||
sendSmtpProfile.innerHTML = html;
|
||||
if (previous && smtpProfileOptions.some(opt => String(opt.id) === previous)) {
|
||||
sendSmtpProfile.value = previous;
|
||||
} else {
|
||||
sendSmtpProfile.value = '';
|
||||
const def = smtpProfileOptions.find(opt => opt.is_default);
|
||||
sendSmtpProfile.value = def ? String(def.id) : '';
|
||||
}
|
||||
if (sendSmtpProfileHint) {
|
||||
sendSmtpProfileHint.classList.toggle('hidden', smtpProfileOptions.length > 0);
|
||||
|
||||
Reference in New Issue
Block a user