summaryrefslogtreecommitdiffstats
path: root/zellij-server/src/route.rs
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-11-15 20:13:05 +0100
committerGitHub <noreply@github.com>2021-11-15 20:13:05 +0100
commitb861baa6a19e7b868e8e3c4d3349a031322f342a (patch)
tree1def054acd4246c33d1e017df700a49c322efb1c /zellij-server/src/route.rs
parent55aef0aeec3f1ba0d075be30cc8210ae3aa42710 (diff)
First attempt to provide an overlay prompt (#871)
Diffstat (limited to 'zellij-server/src/route.rs')
-rw-r--r--zellij-server/src/route.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/zellij-server/src/route.rs b/zellij-server/src/route.rs
index 457354916..ba70a3c81 100644
--- a/zellij-server/src/route.rs
+++ b/zellij-server/src/route.rs
@@ -335,6 +335,28 @@ fn route_action(
.send_to_screen(ScreenInstruction::Copy(client_id))
.unwrap();
}
+ Action::Confirm => {
+ session
+ .senders
+ .send_to_screen(ScreenInstruction::ConfirmPrompt(client_id))
+ .unwrap();
+ }
+ Action::Deny => {
+ session
+ .senders
+ .send_to_screen(ScreenInstruction::DenyPrompt(client_id))
+ .unwrap();
+ }
+ #[allow(clippy::single_match)]
+ Action::SkipConfirm(action) => match *action {
+ Action::Quit => {
+ to_server
+ .send(ServerInstruction::ClientExit(client_id))
+ .unwrap();
+ should_break = true;
+ }
+ _ => {}
+ },
Action::NoOp => {}
}
should_break