Skip to content

Commit

Permalink
Put "ALL Distributions" as first setting
Browse files Browse the repository at this point in the history
The option to search all distributions is easier to find if it is on top
of the list rather than the very end.
  • Loading branch information
lnussel committed Apr 20, 2018
1 parent ed62e46 commit e337b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def load_distributions
@distributions << dist
logger.debug "Added Distribution: #{dist[:name]}"
}
@distributions << Hash[:name => "ALL Distributions", :project => 'ALL']
@distributions.unshift(Hash[:name => "ALL Distributions", :project => 'ALL'])
rescue Exception => e
logger.error "Error while loading distributions: " + e.to_s
@distributions = nil
Expand Down

0 comments on commit e337b8b

Please sign in to comment.