mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 17:14:21 +01:00
clndash: fix invoice order, return more stuff
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -276,7 +276,7 @@ impl ClnDash {
|
|||||||
self.connection_state = ConnectionState::Active;
|
self.connection_state = ConnectionState::Active;
|
||||||
let _ = channel.req_tx.send(Request::GetInfo);
|
let _ = channel.req_tx.send(Request::GetInfo);
|
||||||
let _ = channel.req_tx.send(Request::ListPeerChannels);
|
let _ = channel.req_tx.send(Request::ListPeerChannels);
|
||||||
let _ = channel.req_tx.send(Request::PaidInvoices(30));
|
let _ = channel.req_tx.send(Request::PaidInvoices(100));
|
||||||
}
|
}
|
||||||
|
|
||||||
Event::Response(resp) => match resp {
|
Event::Response(resp) => match resp {
|
||||||
@@ -648,6 +648,7 @@ fn invoices_ui(
|
|||||||
TableBuilder::new(ui)
|
TableBuilder::new(ui)
|
||||||
.column(Column::auto().resizable(true))
|
.column(Column::auto().resizable(true))
|
||||||
.column(Column::remainder())
|
.column(Column::remainder())
|
||||||
|
.vscroll(false)
|
||||||
.header(20.0, |mut header| {
|
.header(20.0, |mut header| {
|
||||||
header.col(|ui| {
|
header.col(|ui| {
|
||||||
ui.strong("description");
|
ui.strong("description");
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ pub async fn fetch_paid_invoices(
|
|||||||
results.push(res.map_err(|_| lnsocket::Error::Io(std::io::ErrorKind::Interrupted))??);
|
results.push(res.map_err(|_| lnsocket::Error::Io(std::io::ErrorKind::Interrupted))??);
|
||||||
}
|
}
|
||||||
|
|
||||||
results.sort_by(|a, b| a.updated_index.cmp(&b.updated_index));
|
results.sort_by(|a, b| a.updated_index.cmp(&b.updated_index).reverse());
|
||||||
|
|
||||||
Ok(results)
|
Ok(results)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user