mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
implement request session restore
This commit is contained in:
parent
d7b781f604
commit
6a4790c92b
4 changed files with 179 additions and 9 deletions
|
|
@ -120,7 +120,7 @@ impl Navigation {
|
|||
match Database::delete(transaction, &record.id) {
|
||||
Ok(_) => {
|
||||
// Delegate clean action to the item childs
|
||||
// nothing yet..
|
||||
self.request.clean(transaction, &record.id)?;
|
||||
}
|
||||
Err(e) => return Err(e.to_string()),
|
||||
}
|
||||
|
|
@ -139,9 +139,9 @@ impl Navigation {
|
|||
) -> Result<(), String> {
|
||||
match Database::records(transaction, app_browser_window_tab_item_page_id) {
|
||||
Ok(records) => {
|
||||
for _record in records {
|
||||
for record in records {
|
||||
// Delegate restore action to the item childs
|
||||
// nothing yet..
|
||||
self.request.restore(transaction, &record.id)?;
|
||||
}
|
||||
}
|
||||
Err(e) => return Err(e.to_string()),
|
||||
|
|
@ -157,10 +157,10 @@ impl Navigation {
|
|||
) -> Result<(), String> {
|
||||
match Database::add(transaction, app_browser_window_tab_item_page_id) {
|
||||
Ok(_) => {
|
||||
// let id = Database::last_insert_id(transaction);
|
||||
let id = Database::last_insert_id(transaction);
|
||||
|
||||
// Delegate save action to childs
|
||||
// nothing yet..
|
||||
self.request.save(transaction, &id)?;
|
||||
}
|
||||
Err(e) => return Err(e.to_string()),
|
||||
}
|
||||
|
|
@ -197,7 +197,7 @@ impl Navigation {
|
|||
}
|
||||
|
||||
// Delegate migration to childs
|
||||
// nothing yet..
|
||||
Request::migrate(tx)?;
|
||||
|
||||
// Success
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue