relay: better wording for noop

This commit is contained in:
Girish Ramakrishnan
2025-12-11 09:21:55 +01:00
parent ca5ab6edf5
commit 11fc6a61d5
2 changed files with 2 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import { prettyBinarySize } from '@cloudron/pankow/utils';
import { RELAY_PROVIDERS, ISTATES, STORAGE_PROVIDERS } from './constants.js';
function prettyRelayProviderName(provider) {
if (provider === 'noop') return 'Disabled (no email will be sent)';
const tmp = RELAY_PROVIDERS.find(p => p.provider === provider);
return tmp ? tmp.name : provider;
}