From d38217cb0ab919d256259c091a388d3d0907f47e Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Thu, 8 Dec 2022 09:28:41 -0500 Subject: [PATCH] display URL to open PR *** Need to figure out how to turn this into a link *** --- .../src/routes/ProcessModelShow.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx b/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx index 50f31b8b1..ecd6cada7 100644 --- a/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx @@ -61,7 +61,7 @@ export default function ProcessModelShow() { const [filesToUpload, setFilesToUpload] = useState(null); const [showFileUploadModal, setShowFileUploadModal] = useState(false); - const [processModelPublished, setProcessModelPublished] = useState(null); + const [processModelPublished, setProcessModelPublished] = useState(null); const navigate = useNavigate(); const { targetUris } = useUriListForPermissions(); @@ -210,6 +210,7 @@ export default function ProcessModelShow() { }; const publishProcessModel = () => { + setProcessModelPublished(null); HttpService.makeCallToBackend({ path: `/process-models/${modifiedProcessModelId}/publish`, successCallback: postPublish, @@ -525,14 +526,16 @@ export default function ProcessModelShow() { }; const processModelPublishMessage = () => { - console.log(`processModelPublishMessage: `); if (processModelPublished) { + const prUrl: string = processModelPublished.pr_url; return ( <>