From bfa373941c077e596531125964e8fce63d3a7903 Mon Sep 17 00:00:00 2001 From: Madeline Collier Date: Mon, 2 Dec 2024 17:10:33 +0100 Subject: [PATCH] Clarify store_credit invalidated styles If a store credit has been invalidated it will show a red badge, if it has not, it will show a green badge. This is more in line with expectations than the previous colour scheme. --- .../solidus_admin/users/store_credits/index/component.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/app/components/solidus_admin/users/store_credits/index/component.rb b/admin/app/components/solidus_admin/users/store_credits/index/component.rb index e039fd8cc6d..ebfb0d663e5 100644 --- a/admin/app/components/solidus_admin/users/store_credits/index/component.rb +++ b/admin/app/components/solidus_admin/users/store_credits/index/component.rb @@ -98,7 +98,7 @@ def columns header: :invalidated, col: { class: "w-[15%]" }, data: ->(store_credit) do - store_credit.invalidated? ? component('ui/badge').yes : component('ui/badge').no + store_credit.invalidated? ? component('ui/badge').new(name: :yes, color: :red, size: :m) : component('ui/badge').new(name: :no, color: :green, size: :m) end }, ]