Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Feb 14, 2025
1 parent 3f7fecf commit 5d2406c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/dummy/app/avo/resources/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Avo::Resources::Product < Avo::BaseResource
self.discreet_information = [
{
tooltip: -> { sanitize("Product is <strong>#{record.status}</strong>", tags: %w[strong]) },
icon: -> { "heroicons/outline/#{record.status == :new ? "arrow-up-right" : "arrow-down-right"}" }
icon: -> { "heroicons/outline/#{record.status == :new ? "arrow-trending-up" : "arrow-trending-down"}" }
},
:timestamps
]
Expand Down
2 changes: 1 addition & 1 deletion spec/dummy/app/models/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ class Product < ApplicationRecord
def status
return :new if id.nil?
return :new if id.even?
return :updated if id.odd?
:updated
end
end

0 comments on commit 5d2406c

Please sign in to comment.