There is 1 update, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-385ad9ab-332a-4511-9f84-1bff4011450f XWIKI-16216 Open

Allow users to rebind the shortcuts from their user profile UI

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-fdb03077-1cfd-4eff-9834-f5fc3dd0da35 Changes by Charpentier Lucas on 13/Nov/24 16:40
 
Attachment: screenshot-1.png
 
 

1 comment

 
cid:jira-generated-image-avatar-fdb03077-1cfd-4eff-9834-f5fc3dd0da35 Charpentier Lucas on 13/Nov/24 16:41
 

In order to have a consistent saving strategy, we want to only save the new objects on form submission.
Before form submission, we store the state of the preferences in inputs, so that whenever the form is submitted, all the right objects are created/updated/deleted. For each shortcut, this is three kinds of hidden inputs we should handle (createInputs, updateInputs and deleteInputs). We should make sure to have at all times only one of each for each field.

Here is a quick diagram to make it a bit clearer of what should happen on every update of the shortcut fields.
_thumb_42917.png