Skip to content

Commit

Permalink
fix system tests and an issue with bindling
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Jan 31, 2025
1 parent b2f760f commit 7349b8c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,5 @@ group :test do
# Testing framework for Rails
gem 'rspec-rails'
end

gem 'concurrent-ruby', '1.3.4'
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ DEPENDENCIES
capybara
chart-js-rails
color (~> 1.8)
concurrent-ruby (= 1.3.4)
countries (~> 5.7)
dalli
debug
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/multi_languages_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def main_language_label(label)
end

# @param label String | Array | OpenStruct
def display_in_multiple_languages(label)
def display_in_multiple_languages(label, show_max: 5, style_as_badge: false)
if label.blank?
return render Display::AlertComponent.new(message: t('ontology_details.concept.no_preferred_name_for_selected_language'),
type: "warning",
Expand Down
3 changes: 3 additions & 0 deletions app/helpers/turbo_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ def alert_success(id: nil, &block)
alert(id: id, type:'success', &block)
end
def prepend(id, options = {}, &block)
options = { inline: options } if options.is_a?(String)

turbo_stream.prepend(id, **options, &block)
end
def replace(id, options = {}, &block)
options = { inline: options } if options.is_a?(String)
turbo_stream.replace(id, **options, &block)
end

Expand Down

0 comments on commit 7349b8c

Please sign in to comment.