mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
make initial history snap on page restore
This commit is contained in:
parent
ea3aab4d68
commit
99d30c57c7
@ -313,6 +313,9 @@ impl Page {
|
|||||||
// Delegate restore action to the item childs
|
// Delegate restore action to the item childs
|
||||||
self.meta.restore(transaction, &record.id)?;
|
self.meta.restore(transaction, &record.id)?;
|
||||||
self.navigation.restore(transaction, &record.id)?;
|
self.navigation.restore(transaction, &record.id)?;
|
||||||
|
// Make initial page history snap using `navigation` values restored
|
||||||
|
// * just to have back/forward navigation ability
|
||||||
|
snap_history(self.navigation.clone());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(e) => return Err(e.to_string()),
|
Err(e) => return Err(e.to_string()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user