From de07e51746aa0076564c20307664e26b4437f79f Mon Sep 17 00:00:00 2001 From: Glenn de Haan Date: Sat, 17 Aug 2024 14:11:27 +0200 Subject: [PATCH] Hide email button when mail function is disabled --- server.js | 1 + template/voucher.ejs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 21c9cd9..a210e2d 100644 --- a/server.js +++ b/server.js @@ -457,6 +457,7 @@ if(webService) { error_text: req.flashMessage.message || '', timeConvert: time, bytesConvert: bytes, + email_enabled: smtpFrom !== '' && smtpHost !== '' && smtpPort !== '', voucher_types: voucherTypes, voucher_custom: voucherCustom, vouchers: cache.vouchers, diff --git a/template/voucher.ejs b/template/voucher.ejs index 589f945..35c148c 100644 --- a/template/voucher.ejs +++ b/template/voucher.ejs @@ -187,7 +187,7 @@ -