Hi everyone.
I am facing a new challenge in undo redo.
When I outdent a task in the Gantt chart one transaction is saved in STM. In that one transaction, it has queue Property which has 4 items in it.
I want to fetch the item that caused the transaction.
For example:
I Outdent a task. This will result in a transaction with 4 items in the queue
- Screenshot 2024-03-20 at 2.36.32 PM.png (194.98 KiB) Viewed 83 times
From these 4 items, "I know" the item at index 1 (Insert Child Action) is the actual item, the other three are just a reaction of outdenting the task (updating the startDate / endDate of Parent etc).
now there is no way I could distinguish between these 4 items because I want to know what was the actual reason behind the transaction from these 4 items.
There should be a flag or a property (either true or false) from which I can know that this was the action that I performed resulting in this transaction.
STM Object :
- Screenshot 2024-03-20 at 2.35.37 PM.png (135.62 KiB) Viewed 83 times