diff --git a/app/components/embed/media_with_companion_windows_component.html.erb b/app/components/embed/media_with_companion_windows_component.html.erb index d6abf841c..5dcb6340b 100644 --- a/app/components/embed/media_with_companion_windows_component.html.erb +++ b/app/components/embed/media_with_companion_windows_component.html.erb @@ -135,14 +135,18 @@
- -
- -
+ <% if downloadable_files.present? %> + +
+ +
+ <% else %> +

No downloads available

+ <% end %>
diff --git a/app/components/embed/media_with_companion_windows_component.rb b/app/components/embed/media_with_companion_windows_component.rb index 2eb5d1fd4..45bb4b314 100644 --- a/app/components/embed/media_with_companion_windows_component.rb +++ b/app/components/embed/media_with_companion_windows_component.rb @@ -9,7 +9,7 @@ def initialize(viewer:) attr_reader :viewer delegate :purl_object, to: :viewer - delegate :druid, :citation_only?, :manifest_json_url, to: :purl_object + delegate :druid, :citation_only?, :manifest_json_url, :downloadable_files, to: :purl_object def include_transcripts Settings.enabled_features.transcripts || params[:transcripts] == 'true'