Skip to content

Commit

Permalink
Merge pull request #9044 from jrafanie/fix_localized_string_to_match_…
Browse files Browse the repository at this point in the history
…proper_capitalization

Normalize string to proper capitalization
  • Loading branch information
Fryguy authored Jan 19, 2024
2 parents fb2eb38 + 3d7d58a commit 1c78100
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/application_controller/explorer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ def x_history
def x_button
model, action = pressed2model_action(params[:pressed])
allowed_models = %w[common image instance vm miq_template provider automation storage infra_networking]
raise ActionController::RoutingError, 'invalid button action' unless
raise ActionController::RoutingError, 'Invalid button action' unless
allowed_models.include?(model)

unless X_BUTTON_ALLOWED_ACTIONS.key?(action)
raise ActionController::RoutingError, _('invalid button action')
raise ActionController::RoutingError, _('Invalid button action')
end

@explorer = true
Expand Down Expand Up @@ -186,7 +186,7 @@ def generic_x_button(whitelist)
@sb[:action] = action = params[:pressed]

unless whitelist.key?(action)
raise ActionController::RoutingError, _('invalid button action')
raise ActionController::RoutingError, _('Invalid button action')
end

send_action = whitelist[action]
Expand Down

0 comments on commit 1c78100

Please sign in to comment.