From e22d8326ad4113e779d52c22735388eaf049d5fe Mon Sep 17 00:00:00 2001 From: Dan Nita Date: Wed, 19 Jul 2023 15:10:11 +0100 Subject: [PATCH 1/5] update for edit link --- .../resourcePageButtons/ResourcePageButtons.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/commonComponents/resourcePageButtons/ResourcePageButtons.js b/src/pages/commonComponents/resourcePageButtons/ResourcePageButtons.js index 5bf01edc0..46c7d0a64 100644 --- a/src/pages/commonComponents/resourcePageButtons/ResourcePageButtons.js +++ b/src/pages/commonComponents/resourcePageButtons/ResourcePageButtons.js @@ -23,13 +23,13 @@ const ResourcePageButtons = props => { ((props.data.authors && props.data.authors.includes(props.userState[0].id)) || (props.data.creator && props.data.creator[0].id === props.userState[0].id) || isRootAdmin) ? ( - + ) : ( '' )} From ad5108fb79412a24845abfba6ab22ab4def2b8da Mon Sep 17 00:00:00 2001 From: Dan Nita Date: Wed, 19 Jul 2023 15:11:05 +0100 Subject: [PATCH 2/5] update chart --- Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index d3845ad3c..4bccc27e8 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1 +1 @@ -v5.0.0 +v5.0.1 From 57d07e9aec7d4e327b89fb7c7979fd5e05727805 Mon Sep 17 00:00:00 2001 From: Dan Nita Date: Wed, 19 Jul 2023 15:25:53 +0100 Subject: [PATCH 3/5] update with link --- .../resourcePageButtons/ResourcePageButtons.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/pages/commonComponents/resourcePageButtons/ResourcePageButtons.js b/src/pages/commonComponents/resourcePageButtons/ResourcePageButtons.js index 46c7d0a64..e75730bf0 100644 --- a/src/pages/commonComponents/resourcePageButtons/ResourcePageButtons.js +++ b/src/pages/commonComponents/resourcePageButtons/ResourcePageButtons.js @@ -1,6 +1,7 @@ import { useState, useEffect } from 'react'; import { Button } from 'hdruk-react-core'; import { useAuth } from 'context/AuthContext'; +import { Link } from 'react-router-dom'; import AddToCollection from '../addToCollection/AddToCollection'; const ResourcePageButtons = props => { @@ -23,13 +24,14 @@ const ResourcePageButtons = props => { ((props.data.authors && props.data.authors.includes(props.userState[0].id)) || (props.data.creator && props.data.creator[0].id === props.userState[0].id) || isRootAdmin) ? ( - - Edit - + + + ) : ( '' )} From aea8db142d7e73c278a236a3db54d75333571b8d Mon Sep 17 00:00:00 2001 From: soringumeni1 <116347337+soringumeni1@users.noreply.github.com> Date: Wed, 19 Jul 2023 17:00:57 +0100 Subject: [PATCH 4/5] Update Chart.yaml --- Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index 4bccc27e8..d3845ad3c 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1 +1 @@ -v5.0.1 +v5.0.0 From c76eee81dfdd821767abe94425e70e5b1aa0c048 Mon Sep 17 00:00:00 2001 From: soringumeni1 <116347337+soringumeni1@users.noreply.github.com> Date: Fri, 21 Jul 2023 15:01:21 +0100 Subject: [PATCH 5/5] Update Chart.yaml --- Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index d3845ad3c..4bccc27e8 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1 +1 @@ -v5.0.0 +v5.0.1