From 0d5a3cdb4e9ab0959ff0d71c04da29f38dcbfbb1 Mon Sep 17 00:00:00 2001 From: Fabian Emilius Date: Mon, 16 Sep 2024 20:37:45 +0200 Subject: [PATCH 1/3] Allow to schedule presentations in the past --- .../ReplacePresentationModal/ReplacePresentationModal.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/client/src/pages/ThesisPage/components/ThesisWritingSection/components/ReplacePresentationModal/ReplacePresentationModal.tsx b/client/src/pages/ThesisPage/components/ThesisWritingSection/components/ReplacePresentationModal/ReplacePresentationModal.tsx index de73ae36..c866a6fa 100644 --- a/client/src/pages/ThesisPage/components/ThesisWritingSection/components/ReplacePresentationModal/ReplacePresentationModal.tsx +++ b/client/src/pages/ThesisPage/components/ThesisWritingSection/components/ReplacePresentationModal/ReplacePresentationModal.tsx @@ -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' - } }, }, }) From 0279ecb128db6d0078e7a14c4d6f660ff8cbdb5e Mon Sep 17 00:00:00 2001 From: Fabian Emilius Date: Mon, 16 Sep 2024 20:42:37 +0200 Subject: [PATCH 2/3] Change title of theses page --- client/src/pages/ThesisOverviewPage/ThesisOverviewPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/pages/ThesisOverviewPage/ThesisOverviewPage.tsx b/client/src/pages/ThesisOverviewPage/ThesisOverviewPage.tsx index 2f397166..c0070fa4 100644 --- a/client/src/pages/ThesisOverviewPage/ThesisOverviewPage.tsx +++ b/client/src/pages/ThesisOverviewPage/ThesisOverviewPage.tsx @@ -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) @@ -39,7 +39,7 @@ const ThesisOverviewPage = () => { } > - Theses Overview + Theses {managementAccess && (