diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-22 19:12:29 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-22 19:12:29 +0300 |
| commit | 1c6397b1cddb288099ed212a5979732698bd72c2 (patch) | |
| tree | 0574b428903ea1ce106bc7ba36e213c0418aa9f4 /src/client/shell/composition.rs | |
| parent | 7237703dc59102cf3097e833eb896b314007b548 (diff) | |
fix: reuse ssh authentication and add machine recovery commands (#4490)
* fix: reuse ssh authentication and add in-app mfa recovery
refs #3763
* refactor: move ssh recovery to machine cli
refs #3763
Diffstat (limited to 'src/client/shell/composition.rs')
| -rw-r--r-- | src/client/shell/composition.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/shell/composition.rs b/src/client/shell/composition.rs index 4da21e77..9b710dd5 100644 --- a/src/client/shell/composition.rs +++ b/src/client/shell/composition.rs @@ -55,6 +55,7 @@ impl ClientShellState { == Some(ClientEndpointStatus::Online) }); let mut render_state = render::ShellRenderState { + machine_diagnostics: &self.machine_diagnostics, endpoints: &self.endpoints, active_endpoint_id: &self.active_endpoint_id, collapsed_endpoints: &self.collapsed_endpoints, @@ -134,6 +135,15 @@ impl ClientShellState { &self.config.keybinds, &self.config.palette, ); + if let Some(notice) = &self.visible_endpoint_notice { + self.hits.notification_toast = endpoint_notices::render_notice( + &mut buffer, + Rect::new(0, 0, cols, rows), + notice, + 1, + &self.config.palette, + ); + } FrameData::from_ratatui_buffer_with_hyperlinks(&buffer, None, &[]) } @@ -197,6 +207,7 @@ impl ClientShellState { snapshot, &self.config, render::ShellRenderState { + machine_diagnostics: &self.machine_diagnostics, endpoints: &self.endpoints, active_endpoint_id: &self.active_endpoint_id, collapsed_endpoints: &self.collapsed_endpoints, |
