Fix web app icon component
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8049f81b73
commit
208b1f04ae
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
module AppCatalog
|
module AppCatalog
|
||||||
class WebAppIconComponent < ViewComponent::Base
|
class WebAppIconComponent < ViewComponent::Base
|
||||||
|
include ApplicationHelper
|
||||||
|
|
||||||
def initialize(web_app:)
|
def initialize(web_app:)
|
||||||
if web_app&.icon&.attached?
|
if web_app&.icon&.attached?
|
||||||
@image_url = image_url_for(web_app.icon)
|
@image_url = image_url_for(web_app.icon)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user