rename TimelineResponse -> ColumnNoteResponse
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use crate::{
|
||||
actionbar::TimelineResponse,
|
||||
actionbar::NoteActionResponse,
|
||||
imgcache::ImageCache,
|
||||
notecache::NoteCache,
|
||||
notes_holder::{NotesHolder, NotesHolderStorage},
|
||||
@@ -47,7 +47,7 @@ impl<'a> ThreadView<'a> {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn ui(&mut self, ui: &mut egui::Ui) -> TimelineResponse {
|
||||
pub fn ui(&mut self, ui: &mut egui::Ui) -> NoteActionResponse {
|
||||
let txn = Transaction::new(self.ndb).expect("txn");
|
||||
|
||||
let selected_note_key = if let Ok(key) = self
|
||||
@@ -58,7 +58,7 @@ impl<'a> ThreadView<'a> {
|
||||
key
|
||||
} else {
|
||||
// TODO: render 404 ?
|
||||
return TimelineResponse::default();
|
||||
return NoteActionResponse::default();
|
||||
};
|
||||
|
||||
ui.label(
|
||||
@@ -75,7 +75,7 @@ impl<'a> ThreadView<'a> {
|
||||
let note = if let Ok(note) = self.ndb.get_note_by_key(&txn, selected_note_key) {
|
||||
note
|
||||
} else {
|
||||
return TimelineResponse::default();
|
||||
return NoteActionResponse::default();
|
||||
};
|
||||
|
||||
let root_id = {
|
||||
|
||||
Reference in New Issue
Block a user