frontend
frontend copied to clipboard
New dataset actions not really working
Summary
I tried to configure the new dataset actions (pointing download to the zipservice url)
Steps to Reproduce
configure a url pointing to the zip service
Current Behaviour
There is no request arriving at the zip service, and in the console one gets:
Form submission canceled because the form is not connected
perform_action @ 596.ecc3c8e6b73e4a52.js:1 ==> see below
this.form = document.createElement("form"),
this.form.target = this.actionConfig.target,
this.form.method = this.actionConfig.method,
this.form.action = this.actionConfig.url,
this.form.appendChild(this.add_input("auth_token", this.userApi.getCurrentToken().id)),
this.form.appendChild(this.add_input("jwt", this.jwt)),
this.form.appendChild(this.add_input("dataset", this.actionDataset.pid)),
this.form.appendChild(this.add_input("directory", this.actionDataset.sourceFolder));
for (const [p,m] of this.files.entries())
("all" === this.actionConfig.files || "selected" === this.actionConfig.files && m.selected) && this.form.appendChild(this.add_input("files[" + p + "]", m.path));
this.form.submit(),
window.open("", "view")
}
Expected Behaviour
The data arrive at the zip service
Extra Details
https://github.com/SciCatProject/frontend/pull/1528/files/2099d8a0cb8929078ae108a5bcc239b46a835d05#r1707136164