From f64beac7ff8465c2021258239d47d264b1e5eeeb Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Fri, 16 Feb 2018 12:57:17 +0100 Subject: [PATCH 1/2] Simplify the way of showing order-status-badge icon --- .../views/storefront/order-status-badge.html | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/main/webapp/frontend/src/views/storefront/order-status-badge.html b/src/main/webapp/frontend/src/views/storefront/order-status-badge.html index dd1227115..f13b6d910 100644 --- a/src/main/webapp/frontend/src/views/storefront/order-status-badge.html +++ b/src/main/webapp/frontend/src/views/storefront/order-status-badge.html @@ -34,6 +34,11 @@ padding: 2px 8px; } + :host([status="delivered"]) #wrapper span, + :host(:not([status="delivered"])) #wrapper iron-icon { + display: none; + } + :host([small]) #wrapper { padding: 0 5px; } @@ -49,7 +54,11 @@ } -
+
+ [[status]] + +
+