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.
18 lines
346 B
Ruby
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
|