From 7f632edcf74d55bdd09ffc8a74552f898df04daf Mon Sep 17 00:00:00 2001 From: Stefan Date: Tue, 22 Feb 2022 09:08:07 +0200 Subject: [PATCH] fix: minor UI improvements --- client/src/components/Footer.tsx | 13 ++++++++++--- client/src/components/Header.tsx | 16 ++++++++++------ client/src/components/JobModal.tsx | 3 +-- client/src/components/JobsTable.tsx | 6 +++--- client/src/components/JobsTableRow.tsx | 3 +++ client/src/components/Modal.tsx | 11 ++++++++--- 6 files changed, 35 insertions(+), 17 deletions(-) diff --git a/client/src/components/Footer.tsx b/client/src/components/Footer.tsx index b47a9bc..dccd442 100644 --- a/client/src/components/Footer.tsx +++ b/client/src/components/Footer.tsx @@ -107,8 +107,11 @@ const Footer: React.FC = () => { {renderModals && ( <> {/* Bulk requeue modal */} - setRenderModals(false)}> -
Requeue {jobsMsg}
+ setRenderModals(false)} + >
{
{/* Bulk delete modal */} - setRenderModals(false)}> + setRenderModals(false)} + title={'Delete ' + jobsMsg + '?'} + >
Delete {jobsMsg}
{ setRenderModal(true)} - className="mt-4 btn bg-primary text-primary-content" + className="mt-4 btn btn-primary text-primary-content" > New Job @@ -77,12 +77,12 @@ const Header: React.FC = () => { {renderModal && ( { setRenderModal(false); setRenderAlert(false); }} > -
Create Job
+
{formik.errors.name && formik.touched.name ? formik.errors.name : ''} @@ -130,7 +130,9 @@ const Header: React.FC = () => { value={formik.values.schedule} /> {formik.errors.schedule && formik.touched.schedule ? ( -
{formik.errors.schedule}
+
+ {formik.errors.schedule} +
) : null} Number or{' '} @@ -158,7 +160,7 @@ const Header: React.FC = () => { value={formik.values.repeatInterval} /> {formik.errors.repeatInterval && formik.touched.repeatInterval ? ( -
+
{formik.errors.repeatInterval}
) : null} @@ -195,7 +197,9 @@ const Header: React.FC = () => { value={formik.values.data} /> {formik.errors.data && formik.touched.data ? ( -
{formik.errors.data}
+
+ {formik.errors.data} +
) : null} {renderAlert && (
diff --git a/client/src/components/JobModal.tsx b/client/src/components/JobModal.tsx index f8149d1..8bbcd7f 100644 --- a/client/src/components/JobModal.tsx +++ b/client/src/components/JobModal.tsx @@ -31,8 +31,7 @@ const JobModal: React.FC = ({ if (!job) return null; return ( - -
{title}
+
ID: {job.job._id}