Skip to content

Commit

Permalink
Merge pull request #520 from Floppy/show_all_tags_library_taglist
Browse files Browse the repository at this point in the history
show all tags in library taglist
  • Loading branch information
Floppy authored May 11, 2022
2 parents 8331079 + 5efcbf3 commit a4b108a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/libraries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def show
@library.models.includes(:tags, :preview_file, :creator)
end

@tags = @models.map(&:tags).flatten.uniq.sort_by(&:name)
@tags = @library.models.includes(:tags).map(&:tags).flatten.uniq.sort_by(&:name)

@scanning = Delayed::Job.count > 0
# Filter by tag?
if params[:tag]
Expand Down

0 comments on commit a4b108a

Please sign in to comment.