From 5efcbf3297d93ae3566fa0aeb3756c92143c429e Mon Sep 17 00:00:00 2001 From: Matthew Page Date: Wed, 11 May 2022 08:32:21 -0700 Subject: [PATCH] show all tags in library taglist --- app/controllers/libraries_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/libraries_controller.rb b/app/controllers/libraries_controller.rb index 33483a6e4..4b358bc59 100644 --- a/app/controllers/libraries_controller.rb +++ b/app/controllers/libraries_controller.rb @@ -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]