Files
nairobi/app/components/layout/cookies_consent/banner_component.rb
taitus 5d590a0aee Add modal management for show essential cookies information
Note that in order to avoid display duplicated vertical scroll when
render a modal, we are add an `overflow: unset` rule. This rule
overwrite a vendor rule both in the modal we are adding and in the
modal we already have when creating a budget in admin section.
2025-01-23 16:48:55 +01:00

18 lines
346 B
Ruby

class Layout::CookiesConsent::BannerComponent < Layout::CookiesConsent::BaseComponent
delegate :cookies, to: :helpers
def render?
super && cookies_consent_unset?
end
def more_info_link
Setting["cookies_consent.more_info_link"]
end
private
def cookies_consent_unset?
cookies["cookies_consent"].blank?
end
end