From ae2e78dfa197c9eb9d4d2176410fa41e8cfd5233 Mon Sep 17 00:00:00 2001 From: Stanislav Romanov Date: Thu, 15 Sep 2022 17:17:15 +0300 Subject: [PATCH] Add styles to badge --- app/components/badge.hbs | 5 ++++- app/templates/admin/tasks/index.hbs | 8 +++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/components/badge.hbs b/app/components/badge.hbs index ae4fdf0..986c250 100644 --- a/app/components/badge.hbs +++ b/app/components/badge.hbs @@ -1,7 +1,10 @@ {{#let 'inline-flex items-center px-3 py-0.5 rounded-full text-sm font-medium bg-base-4 text-base-2' (hash - success='bg-green-light text-green-dark' + success='bg-success-light text-success-dark' + warning='bg-warning-light text-warning-dark' + danger='bg-danger-light text-danger-dark' + info='bg-info-light text-info-dark' ) as |commonClasses variableClasses| }} diff --git a/app/templates/admin/tasks/index.hbs b/app/templates/admin/tasks/index.hbs index 2990d30..3a09a96 100644 --- a/app/templates/admin/tasks/index.hbs +++ b/app/templates/admin/tasks/index.hbs @@ -3,7 +3,9 @@ - + + + {{json-stringify data.details}} @@ -46,3 +48,7 @@ }} + +
+ +