From 3a77bee659b4b3d2306bbde00928cd62c767aa9a Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Thu, 30 Mar 2023 11:22:41 +0300 Subject: [PATCH] feat: show `new` badge for order --- static/components/order-list/order-list.html | 5 ++++- static/components/order-list/order-list.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/static/components/order-list/order-list.html b/static/components/order-list/order-list.html index 1c665ff..231ceec 100644 --- a/static/components/order-list/order-list.html +++ b/static/components/order-list/order-list.html @@ -63,7 +63,10 @@ /> - {{toShortId(props.row.id)}} + + {{toShortId(props.row.id)}} + new {{props.row.total}} diff --git a/static/components/order-list/order-list.js b/static/components/order-list/order-list.js index 927fe38..cc77029 100644 --- a/static/components/order-list/order-list.js +++ b/static/components/order-list/order-list.js @@ -148,7 +148,7 @@ async function orderList(path) { `/nostrmarket/api/v1/order/${orderId}`, this.inkey ) - return {...data, expanded: false} + return {...data, expanded: false, isNew: true} } catch (error) { LNbits.utils.notifyApiError(error) }