diff --git a/bin/commands/issue/common.rs b/bin/commands/issue/common.rs index 1adb8f90..df4dcb30 100644 --- a/bin/commands/issue/common.rs +++ b/bin/commands/issue/common.rs @@ -16,26 +16,18 @@ pub enum Mode { /// selection widget. #[derive(Clone, Debug, Eq, PartialEq, Serialize)] pub enum IssueOperation { - Show, - Delete, Edit, - Comment, + Show, } impl Display for IssueOperation { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - IssueOperation::Show => { - write!(f, "show") - } - IssueOperation::Delete => { - write!(f, "delete") - } IssueOperation::Edit => { write!(f, "edit") } - IssueOperation::Comment => { - write!(f, "comment") + IssueOperation::Show => { + write!(f, "show") } } } diff --git a/bin/commands/issue/flux/select/ui.rs b/bin/commands/issue/flux/select/ui.rs index 5a0cbff1..492bc72b 100644 --- a/bin/commands/issue/flux/select/ui.rs +++ b/bin/commands/issue/flux/select/ui.rs @@ -102,17 +102,6 @@ impl Widget for ListPage { }); } } - Key::Char('c') => { - if let Some(selected) = &self.props.selected { - let _ = self.action_tx.send(Action::Exit { - selection: Some(Selection { - operation: Some(IssueOperation::Comment.to_string()), - ids: vec![selected.id], - args: vec![], - }), - }); - } - } Key::Char('e') => { if let Some(selected) = &self.props.selected { let _ = self.action_tx.send(Action::Exit { @@ -124,17 +113,6 @@ impl Widget for ListPage { }); } } - Key::Char('d') => { - if let Some(selected) = &self.props.selected { - let _ = self.action_tx.send(Action::Exit { - selection: Some(Selection { - operation: Some(IssueOperation::Delete.to_string()), - ids: vec![selected.id], - args: vec![], - }), - }); - } - } _ => { >::handle_key_event(&mut self.issues, key); }