Add more log/display info
This commit is contained in:
parent
a75911cb32
commit
e5f476f48d
2 changed files with 8 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ use ratatui::{
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use strum::Display;
|
use strum::Display;
|
||||||
use tokio::sync::mpsc::UnboundedSender;
|
use tokio::sync::mpsc::UnboundedSender;
|
||||||
|
use tracing::info;
|
||||||
|
|
||||||
use super::Component;
|
use super::Component;
|
||||||
use crate::{action::Action, config::Config};
|
use crate::{action::Action, config::Config};
|
||||||
|
|
@ -64,6 +65,7 @@ impl Component for Popup {
|
||||||
match action {
|
match action {
|
||||||
Action::DismissPopup => self.popup_text.clear(),
|
Action::DismissPopup => self.popup_text.clear(),
|
||||||
Action::DisplayPopup(new_type, new_text) => {
|
Action::DisplayPopup(new_type, new_text) => {
|
||||||
|
info!("Show Popup ({new_type}): {new_text}");
|
||||||
self.popup_type = new_type;
|
self.popup_type = new_type;
|
||||||
self.popup_text = format!("\n{new_text}");
|
self.popup_text = format!("\n{new_text}");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,12 @@ pub fn get_disk_description_right(
|
||||||
line_colors,
|
line_colors,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
if disk.parts_description.is_empty() {
|
||||||
|
description.push(DVLine {
|
||||||
|
line_parts: vec![String::from("-None-")],
|
||||||
|
line_colors: vec![Color::Reset],
|
||||||
|
});
|
||||||
|
}
|
||||||
description
|
description
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue