Skip to content

Commit

Permalink
Fix - change color alert state (#1451)
Browse files Browse the repository at this point in the history
I changed alert color in order to clarify visibility of user. 

Before 

<img width="1159" alt="Capture d’écran 2024-01-07 à 15 32 43"
src="https://github.com/lunarphp/lunar/assets/6489718/8967402c-1355-4311-ae96-02fd1e83edcd">

After 

<img width="1143" alt="Capture d’écran 2024-01-07 à 15 33 04"
src="https://github.com/lunarphp/lunar/assets/6489718/e2b11747-9a65-4f53-ab71-d1f712b76529">
  • Loading branch information
lguichard authored Jan 8, 2024
1 parent 3b15ca6 commit 0b27fa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/admin/src/Filament/Resources/ProductResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,19 @@ public static function getDefaultForm(Form $form): Form
Shout::make('product-status')
->content(
__('lunarpanel::product.status.unpublished.content')
)->type('danger')->hidden(
)->type('info')->hidden(
fn (Model $record) => $record?->status == 'published'
),
Shout::make('product-customer-groups')
->content(
__('lunarpanel::product.status.availability.customer_groups')
)->type('danger')->hidden(function (Model $record) {
)->type('warning')->hidden(function (Model $record) {
return $record->customerGroups()->where('enabled', true)->count();
}),
Shout::make('product-channels')
->content(
__('lunarpanel::product.status.availability.channels')
)->type('danger')->hidden(function (Model $record) {
)->type('warning')->hidden(function (Model $record) {
return $record->channels()->where('enabled', true)->count();
}),
Forms\Components\Section::make()
Expand Down

0 comments on commit 0b27fa6

Please sign in to comment.