mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
make initial history snap on page restore
This commit is contained in:
parent
ea3aab4d68
commit
99d30c57c7
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue