Skip to content

Commit

Permalink
[frontend] Sort local and remote image templates
Browse files Browse the repository at this point in the history
Sort local and remote image templates by name.
  • Loading branch information
bgeuken committed Oct 9, 2017
1 parent 156c972 commit 89d7fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def self.restore(project_name, backend_opts = {})
end

def self.image_templates
Project.local_image_templates + remote_image_templates
(local_image_templates + remote_image_templates).sort_by(&:name)
end

def self.remote_image_templates
Expand Down

0 comments on commit 89d7fc5

Please sign in to comment.