Closed karkraeg closed 3 weeks ago
@zzacharo as discussed tuesday in the telecon, could you provide some insight here as to how the flask config could best be read from the deposit.js
? Thanks! The config
object doesn't contain it.
Hello,
I think it should be enough to inject the new variables in the form config:
That would go down to the deposit form state here and then it is available in the actions because of how we configure the redux store
Give it a go and let me know!
Hi @zzacharo, thanks for your help! It will be fixed with https://github.com/inveniosoftware/invenio-app-rdm/pull/2889 and https://github.com/inveniosoftware/invenio-rdm-records/pull/1859
In
deposit.js
thedelete_
function has the redirect URL after deleting a draft hardcoded: https://github.com/inveniosoftware/invenio-rdm-records/blob/0d313c61bda1c509c8518c1c30f8abc337e96967/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/state/actions/deposit.js#L262This should be read from the config value
APP_RDM_DASHBOARD_ROUTES["uploads"]
instead.