diff --git a/static/components/order-list/order-list.html b/static/components/order-list/order-list.html
index f166b03..5ff9f88 100644
--- a/static/components/order-list/order-list.html
+++ b/static/components/order-list/order-list.html
@@ -89,7 +89,9 @@
{{item.quantity}}
x
- {{productName(props.row, item.product_id)}}
+
+ {{shortLabel(productName(props.row, item.product_id))}}
+
{{productPrice(props.row, item.product_id)}}
@@ -207,4 +209,4 @@
-
\ No newline at end of file
+
diff --git a/static/components/order-list/order-list.js b/static/components/order-list/order-list.js
index 285a077..2dc721a 100644
--- a/static/components/order-list/order-list.js
+++ b/static/components/order-list/order-list.js
@@ -130,6 +130,10 @@ async function orderList(path) {
formatFiat(value, currency) {
return Math.trunc(value) + ' ' + currency
},
+ shortLabel(value = ''){
+ if (value.length <= 44) return value
+ return value.substring(0, 20) + '...'
+ },
productName: function (order, productId) {
product = order.extra.products.find(p => p.id === productId)
if (product) {
@@ -287,7 +291,7 @@ async function orderList(path) {
const order = await this.getOrder(orderData.id)
this.orders.unshift(order)
}
-
+
}
},
orderSelected: async function (orderId, eventId) {
@@ -305,7 +309,7 @@ async function orderList(path) {
restoredOrder.isNew = false
this.orders = [restoredOrder]
}
-
+
})
return
}