webadmin: don't on queue page when there are no transports and the queue is non-empty (typical case)

This commit is contained in:
Mechiel Lukkien 2023-11-12 22:04:48 +01:00
parent 2265769b8e
commit ae37b3ed4d
No known key found for this signature in database

View file

@ -1972,7 +1972,7 @@ const queueList = async () => {
transport=dom.select(
attr({title: 'Transport to use for delivery attempts. The default is direct delivery, connecting to the MX hosts of the domain.'}),
dom.option('(default)', attr({value: ''})),
Object.keys(transports).sort().map(t => dom.option(t, m.Transport === t ? attr({checked: ''}) : [])),
Object.keys(transports || []).sort().map(t => dom.option(t, m.Transport === t ? attr({checked: ''}) : [])),
),
' ',
dom.button('Retry now'),