mirror of https://github.com/node-red/node-red.git
`markAllDirty` also needs to modify the redo list
parent
7700aa9121
commit
2b65cf02b1
|
|
@ -833,8 +833,8 @@ RED.history = (function() {
|
|||
return {
|
||||
//TODO: this function is a placeholder until there is a 'save' event that can be listened to
|
||||
markAllDirty: function() {
|
||||
for (var i=0;i<undoHistory.length;i++) {
|
||||
undoHistory[i].dirty = true;
|
||||
for (const event of [...undoHistory, ...redoHistory]) {
|
||||
event.dirty = true;
|
||||
}
|
||||
},
|
||||
list: function() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue