diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-30 19:55:11 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-30 19:57:02 +0300 |
| commit | 9a91a2ac41a5b2fbc2811922750a782b45115219 (patch) | |
| tree | 53009544365b1b3163d37e058eb2a1ea8f29f553 /src/app/mod.rs | |
| parent | 26db26e416318e17a6e7f3f196ec72109fb37998 (diff) | |
refactor: route tui mutations through runtime dispatch
Diffstat (limited to 'src/app/mod.rs')
| -rw-r--r-- | src/app/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs index cfcbe07e..04de4c84 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -14,6 +14,7 @@ mod creation; mod ids; mod input; mod runtime; +mod runtime_mutations; mod session; pub mod state; mod terminal_targets; @@ -886,7 +887,7 @@ impl App { if self.state.request_new_workspace { self.state.request_new_workspace = false; - self.dispatch_tui_api_request( + self.dispatch_tui_runtime_mutation( "tui.workspace.create", crate::api::schema::Method::WorkspaceCreate( crate::api::schema::WorkspaceCreateParams { @@ -903,7 +904,7 @@ impl App { if self.state.request_new_tab { self.state.request_new_tab = false; let label = self.state.requested_new_tab_name.take(); - self.dispatch_tui_api_request( + self.dispatch_tui_runtime_mutation( "tui.tab.create", crate::api::schema::Method::TabCreate(crate::api::schema::TabCreateParams { workspace_id: None, @@ -927,7 +928,7 @@ impl App { } if let Some(cwd) = self.state.request_new_workspace_cwd.take() { - self.dispatch_tui_api_request( + self.dispatch_tui_runtime_mutation( "tui.workspace.create_cwd", crate::api::schema::Method::WorkspaceCreate( crate::api::schema::WorkspaceCreateParams { |
