From 939fd0ed3a3fd63f7f27b7ce282bacea0aa37873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20=C4=90=E1=BB=A9c=20=C4=90=E1=BA=A1t?= Date: Wed, 26 Apr 2023 19:09:09 +0700 Subject: [PATCH] update user detail UI --- .../components/users/user-detail/user-detail.component.html | 4 +++- .../components/users/user-detail/user-detail.component.scss | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/components/users/user-detail/user-detail.component.html b/src/app/components/users/user-detail/user-detail.component.html index 2656ae3..2c786e8 100644 --- a/src/app/components/users/user-detail/user-detail.component.html +++ b/src/app/components/users/user-detail/user-detail.component.html @@ -239,7 +239,7 @@ 'badge-warning': order.status === 'CONFIRMED', 'badge-info': order.status === 'SHIPPING', 'badge-success': order.status === 'COMPLETED', - 'badge-primary': order.status === 'CANCELED' + 'badge-primary': order.status === 'CANCELED' || order.status === 'REJECT_DELIVERY' }"> {{ order.status === "AWAITING" @@ -252,6 +252,8 @@ ? "Giao thành công" : order.status === "CANCELED" ? "Đã huỷ đơn" + : order.status === "REJECT_DELIVERY" + ? "Không nhận hàng" : "" }} diff --git a/src/app/components/users/user-detail/user-detail.component.scss b/src/app/components/users/user-detail/user-detail.component.scss index c8f52b1..62cabbc 100644 --- a/src/app/components/users/user-detail/user-detail.component.scss +++ b/src/app/components/users/user-detail/user-detail.component.scss @@ -1,3 +1,7 @@ .text-size { font-size: 16px; +} + +th, td { + text-align: center; } \ No newline at end of file