irods-contrib / metalnx-web

Metalnx Web Application
https://metalnx.github.io/
BSD 3-Clause "New" or "Revised" License
36 stars 36 forks source link

After delete a data object, you are not forwarded to the collection that you are in #256

Closed mstfdkmn closed 3 years ago

mstfdkmn commented 3 years ago

After you delete a data object, you are supposed to be automatically forwarded to the collection that you are in. But this doesn't happens when you inside the view info.

With the delete option by using view info/action/delete you cannot easily go back to the screen that you are in. You have to click on the “Go back to Collection Home” on the wrongly named popped-up message. And this is not user friendly when you are working on embedded collections. However this doesn’t happen with deleting by selecting tick box/Action/Delete.

image

You have to click on the "Go back to Collection Home” to be back to Metalnx. image

Thanks.

Tested both in 4.2.8 - 2.4.0 and in 4.2.9 - 2.4.0. And ICAT is MySQL.

korydraughn commented 3 years ago

Given how deletion works in this case, I've updated the application to redirect to the collection view automatically after a successful deletion. I will review this issue one more time before closing, in case there is a better solution.

trel commented 3 years ago

better solution: just go to the parent of the data object that was being deleted?

korydraughn commented 3 years ago

I've created a PR with the necessary changes. Please give it a look.