Skip to content

Commit

Permalink
Merge pull request #268 from ls1intum/code-cleanup
Browse files Browse the repository at this point in the history
Code cleanup
  • Loading branch information
fabian-emilius authored Sep 16, 2024
2 parents 7654552 + f741242 commit 78d3030
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions client/src/pages/ThesisOverviewPage/ThesisOverviewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Plus } from 'phosphor-react'
import { useHasGroupAccess } from '../../hooks/authentication'

const ThesisOverviewPage = () => {
usePageTitle('Theses Overview')
usePageTitle('Theses')

const [openCreateThesisModal, setOpenCreateThesisModal] = useState(false)

Expand All @@ -39,7 +39,7 @@ const ThesisOverviewPage = () => {
}
>
<Group>
<Title mb='md'>Theses Overview</Title>
<Title mb='md'>Theses</Title>
{managementAccess && (
<Button
ml='auto'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ const ReplacePresentationModal = (props: IReplacePresentationModalProps) => {
if (!value) {
return 'Date is required'
}

if (value.getTime() <= Date.now()) {
return 'Date must be in the future'
}
},
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ public MailingService(
}

public void sendApplicationCreatedEmail(Application application) {
MailBuilder chairMailBuilder = new MailBuilder(config, "New Thesis Application", "application-created-chair");
MailBuilder chairMailBuilder = new MailBuilder(
config,
"New Thesis Application ({{application.user.firstName}} {{application.user.lastName}})",
"application-created-chair"
);
chairMailBuilder
.sendToChairMembers()
.addStoredAttachment(application.getUser().getCvFilename(), getUserFilename(application.getUser(), "cv", application.getUser().getCvFilename()))
Expand Down

0 comments on commit 78d3030

Please sign in to comment.