aboutsummaryrefslogtreecommitdiff
path: root/src/tui
diff options
context:
space:
mode:
authorlukeflo2024-12-23 19:07:24 +0100
committerlukeflo2024-12-23 21:03:19 +0100
commit6ff6b82e0fcea4344db8b17ea5be2d72b3d9d9f2 (patch)
tree9b388462c25c39186a52cef047d651a728d4369c /src/tui
parentbf93bbee1b59c9804a01a7476e12264bbbcf5f40 (diff)
downloadbibiman-6ff6b82e0fcea4344db8b17ea5be2d72b3d9d9f2.tar.gz
bibiman-6ff6b82e0fcea4344db8b17ea5be2d72b3d9d9f2.zip
better error messages for doi-add
Diffstat (limited to 'src/tui')
-rw-r--r--src/tui/popup.rs4
-rw-r--r--src/tui/ui.rs6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/tui/popup.rs b/src/tui/popup.rs
index 352b328..78a0719 100644
--- a/src/tui/popup.rs
+++ b/src/tui/popup.rs
@@ -28,8 +28,8 @@ pub enum PopupKind {
Help,
MessageConfirm,
MessageError,
- SelectRes,
- SelectFile,
+ OpenRes,
+ AppendToFile,
AddEntry,
}
diff --git a/src/tui/ui.rs b/src/tui/ui.rs
index 6a3b8de..4f64338 100644
--- a/src/tui/ui.rs
+++ b/src/tui/ui.rs
@@ -283,7 +283,7 @@ pub fn render_popup(app: &mut App, args: &CLIArgs, frame: &mut Frame) {
frame.render_widget(Clear, popup_area);
frame.render_widget(&content, popup_area)
}
- Some(PopupKind::SelectRes) | Some(PopupKind::SelectFile) => {
+ Some(PopupKind::OpenRes) | Some(PopupKind::AppendToFile) => {
let list_items: Vec<ListItem> = app
.bibiman
.popup_area
@@ -292,9 +292,9 @@ pub fn render_popup(app: &mut App, args: &CLIArgs, frame: &mut Frame) {
.map(|item| ListItem::from(item.to_owned()))
.collect();
- let title = if let Some(PopupKind::SelectRes) = app.bibiman.popup_area.popup_kind {
+ let title = if let Some(PopupKind::OpenRes) = app.bibiman.popup_area.popup_kind {
" Open "
- } else if let Some(PopupKind::SelectFile) = app.bibiman.popup_area.popup_kind {
+ } else if let Some(PopupKind::AppendToFile) = app.bibiman.popup_area.popup_kind {
" Select file to append entry "
} else {
" Select "