From fea7039a2999f3ad6a6bb67675e15f3a73ee45e5 Mon Sep 17 00:00:00 2001 From: chandler Date: Mon, 3 Jun 2024 18:23:37 -0700 Subject: [PATCH 1/3] Fix display issue with TitledBox in Project Form Fixes #1646 --- client/src/components/ProjectForm.js | 156 ++++++++++++++++----------- 1 file changed, 94 insertions(+), 62 deletions(-) diff --git a/client/src/components/ProjectForm.js b/client/src/components/ProjectForm.js index 9ff63055..096be479 100644 --- a/client/src/components/ProjectForm.js +++ b/client/src/components/ProjectForm.js @@ -231,70 +231,102 @@ export default function ProjectForm({ - ) : ( - - )} -
{ - isEdit ? submitEditProject(data) : submitNewProject(data); - })} - > - {arr.map((input) => ( - - ))} - - - {auth.user.accessLevel === 'admin' ? ( - - - - - Save - - - - - Close - + > + {' '} +
{ + isEdit ? submitEditProject(data) : submitNewProject(data); + })} + > + {arr.map((input) => ( + + ))} + + + + + + + Save + + + + + Close + + -
-
+ +
) : ( - '' + + {' '} +
{ + isEdit ? submitEditProject(data) : submitNewProject(data); + })} + > + {arr.map((input) => ( + + ))} + + + {''} +
)} ) : ( From 65fe6a028bd53d8e6e8487877ce9747e753d50a3 Mon Sep 17 00:00:00 2001 From: chandler Date: Mon, 24 Jun 2024 19:43:30 -0700 Subject: [PATCH 2/3] removed isLoading from ternary statement --- client/src/components/ProjectForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/ProjectForm.js b/client/src/components/ProjectForm.js index 096be479..51f59d83 100644 --- a/client/src/components/ProjectForm.js +++ b/client/src/components/ProjectForm.js @@ -274,7 +274,7 @@ export default function ProjectForm({ : 'secondary' } cursor="pointer" - disabled={isEdit && !isLoading ? !editMode : false} + disabled={isEdit ? !editMode : false} > Save From eafa1351eb7b87987b113ba7650035cdc160bab1 Mon Sep 17 00:00:00 2001 From: chandler Date: Mon, 23 Sep 2024 20:15:28 -0700 Subject: [PATCH 3/3] test --- client/src/components/ProjectForm.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/components/ProjectForm.jsx b/client/src/components/ProjectForm.jsx index 29dceb32..44e27d4b 100644 --- a/client/src/components/ProjectForm.jsx +++ b/client/src/components/ProjectForm.jsx @@ -339,3 +339,5 @@ export default function ProjectForm({ ); } + +//adding rogue comment to see if this resets it? \ No newline at end of file