added save confirmation, changed exit dialog

This commit is contained in:
Phani Pavan K
2025-11-10 14:19:58 +05:30
parent 1aea9c4930
commit 059415dca2
6 changed files with 51 additions and 9 deletions

View File

@@ -43,4 +43,11 @@ pub mod hints {
pub fn settingsHints<'a>() -> Text<'a> {
Text::from(Line::from("").style(Style::default().fg(Color::Red)))
}
pub fn saveConfirmationHints<'a>() -> Text<'a> {
Text::from(vec![
Line::from("(entr) Save and reload service").style(Style::default().fg(Color::Yellow)),
Line::from("(esc) Cancel").style(Style::default().fg(Color::LightRed)),
])
}
}