IARC-CSU / CanReg5

CanReg5 is a multi user, multi platform, open source tool to input, store, check and analyse cancer registry data.
http://www.iacr.com.fr/CanReg5
GNU General Public License v3.0
24 stars 13 forks source link

C202303 - Undo functionality in the edit entry form #125

Open infotel4iarc opened 1 year ago

infotel4iarc commented 1 year ago

Develop a functionality to have an undo on the last action.

cchenginfotel commented 1 year ago

Undo & redo features have been added to all "VariableEditorPanel" (standard input fields in the patient) It's now possible to roll back to the previous input of a selected field using the "ctrl+z" shortcut or redo the last edition using the "ctrl+y" shortcut.

The shortcuts can be updated in the code if "ctrl+z" and "ctrl+y" if it doesn't sound practical

cchenginfotel commented 1 year ago

I've applied a fix to the bug, which prevented the feature to not work on both the creation and the edition of a record.