mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
11068: fix lint issues
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ConfirmModalComponent < ModalComponent
|
||||
# @param controller_data_values [Array(Hash)] format: {<value-name-1>: value1, <value-name-2>: value2}
|
||||
# @param controller_data_values [Array(Hash)]
|
||||
# format: {<value-name-1>: value1, <value-name-2>: value2}
|
||||
def initialize(
|
||||
id:,
|
||||
reflex: nil,
|
||||
@@ -35,8 +36,8 @@ class ConfirmModalComponent < ModalComponent
|
||||
def modal_attrs
|
||||
@modal_attrs ||= {
|
||||
id: @id,
|
||||
"data-controller": "modal #{@controller}",
|
||||
"data-action": "keyup@document->modal#closeIfEscapeKey",
|
||||
'data-controller': "modal #{@controller}",
|
||||
'data-action': "keyup@document->modal#closeIfEscapeKey",
|
||||
"data-#{@controller}-reflex-value": @reflex
|
||||
}.merge(@controller_data_values)
|
||||
end
|
||||
|
||||
@@ -250,7 +250,7 @@ class ProductsReflex < ApplicationReflex
|
||||
end
|
||||
|
||||
def product_finder(id)
|
||||
ProductScopeQuery.new(current_user, {id:})
|
||||
ProductScopeQuery.new(current_user, { id: })
|
||||
end
|
||||
|
||||
def variant_scope
|
||||
|
||||
Reference in New Issue
Block a user