mirror of
https://github.com/pcvolkmer/cert-tools.git
synced 2025-07-01 14:02:54 +00:00
fix: show pem content
This commit is contained in:
@ -197,7 +197,7 @@ impl Ui {
|
|||||||
self.key_indicator_state = self.key_indicator_state();
|
self.key_indicator_state = self.key_indicator_state();
|
||||||
Task::done(Message::Print)
|
Task::done(Message::Print)
|
||||||
}
|
}
|
||||||
Message::Print | Message::PrintPem => {
|
Message::Print => {
|
||||||
match self.print_output() {
|
match self.print_output() {
|
||||||
Ok(output) => {
|
Ok(output) => {
|
||||||
self.output = Content::with_text(output.as_str());
|
self.output = Content::with_text(output.as_str());
|
||||||
@ -211,6 +211,20 @@ impl Ui {
|
|||||||
};
|
};
|
||||||
Task::none()
|
Task::none()
|
||||||
}
|
}
|
||||||
|
Message::PrintPem => {
|
||||||
|
match self.pem_output() {
|
||||||
|
Ok(output) => {
|
||||||
|
self.output = Content::with_text(output.as_str());
|
||||||
|
self.status = String::new();
|
||||||
|
self.mode = UiMode::Output;
|
||||||
|
}
|
||||||
|
Err(err) => {
|
||||||
|
self.output = Content::default();
|
||||||
|
self.status = err
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Task::none()
|
||||||
|
}
|
||||||
Message::CopyValue(value) => clipboard::write::<Message>(value),
|
Message::CopyValue(value) => clipboard::write::<Message>(value),
|
||||||
Message::Cleanup => {
|
Message::Cleanup => {
|
||||||
if let Some(chain) = self.fixed_chain.take() {
|
if let Some(chain) = self.fixed_chain.take() {
|
||||||
|
Reference in New Issue
Block a user