diff --git a/client/src/components/ApplicationRejectButton/ApplicationRejectButton.tsx b/client/src/components/ApplicationRejectButton/ApplicationRejectButton.tsx
index 76c3db5b..5a56256e 100644
--- a/client/src/components/ApplicationRejectButton/ApplicationRejectButton.tsx
+++ b/client/src/components/ApplicationRejectButton/ApplicationRejectButton.tsx
@@ -13,6 +13,11 @@ interface IApplicationRejectButtonProps extends ButtonProps {
onUpdate: (application: IApplication) => unknown
}
+interface IFormValues {
+ notifyUser: boolean
+ reason: string | null
+}
+
const ApplicationRejectButton = (props: IApplicationRejectButtonProps) => {
const { application, onUpdate, ...buttonProps } = props
@@ -21,10 +26,7 @@ const ApplicationRejectButton = (props: IApplicationRejectButtonProps) => {
const [confirmationModal, setConfirmationModal] = useState(false)
const [loading, setLoading] = useState(false)
- const form = useForm<{
- notifyUser: boolean
- reason: string | null
- }>({
+ const form = useForm
- You can find the submitted files in the attachment part of this email. The next step is to write an assessment about the thesis.
diff --git a/server/src/main/java/thesistrack/ls1/service/MailingService.java b/server/src/main/java/thesistrack/ls1/service/MailingService.java index fc8efca3..600f3690 100644 --- a/server/src/main/java/thesistrack/ls1/service/MailingService.java +++ b/server/src/main/java/thesistrack/ls1/service/MailingService.java @@ -263,8 +263,8 @@ public void sendFinalSubmissionEmail(Thesis thesis) { .sendToThesisAdvisors(thesis) .addNotificationName("thesis-" + thesis.getId()) .fillThesisPlaceholders(thesis) - .addStoredAttachment(thesis.getFinalThesisFilename(), getThesisFilename(thesis, "File", thesis.getFinalThesisFilename())) - .addStoredAttachment(thesis.getFinalPresentationFilename(), getThesisFilename(thesis, "Presentation", thesis.getFinalPresentationFilename())) + //.addStoredAttachment(thesis.getFinalThesisFilename(), getThesisFilename(thesis, "File", thesis.getFinalThesisFilename())) + //.addStoredAttachment(thesis.getFinalPresentationFilename(), getThesisFilename(thesis, "Presentation", thesis.getFinalPresentationFilename())) .send(javaMailSender, uploadService); } diff --git a/server/src/main/java/thesistrack/ls1/utility/MailBuilder.java b/server/src/main/java/thesistrack/ls1/utility/MailBuilder.java index 782607b3..caf3d15d 100644 --- a/server/src/main/java/thesistrack/ls1/utility/MailBuilder.java +++ b/server/src/main/java/thesistrack/ls1/utility/MailBuilder.java @@ -11,6 +11,7 @@ import lombok.Getter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.mail.MailSendException; import org.springframework.mail.javamail.JavaMailSender; import thesistrack.ls1.constants.ThesisRoleName; import thesistrack.ls1.dto.ApplicationDto; @@ -368,7 +369,7 @@ public void send(JavaMailSender mailSender, UploadService uploadService) throws } else { log.info("Sending Mail (postfix disabled)\n{}", MailLogger.getTextFromMimeMessage(message)); } - } catch (MessagingException exception) { + } catch (Exception exception) { log.warn("Failed to send email", exception); } }