Skip to content

Commit

Permalink
return AlertMessageComponent if skos and empty roots
Browse files Browse the repository at this point in the history
  • Loading branch information
SirineMhedhbi committed Jul 28, 2023
1 parent aa331f3 commit 03e47f7
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
'chosen-enable-colors-value': 'true'}}
-# Class tree
%div#sd_content.card.p-1.py-3{style: 'overflow-y: scroll; height: 60vh;'}
= render TurboFrameComponent.new(id: 'concepts_tree_view',
- if skos? && @roots.empty?
%div.text-wrap
= render AlertMessageComponent.new do
Missing roots for #{@ontology.acronym}
- else
= render TurboFrameComponent.new(id: 'concepts_tree_view',
src: "/ajax/classes/treeview?ontology=#{@ontology.acronym}&conceptid=#{escape(@concept.id)}&concept_schemes=#{params[:concept_schemes]}&auto_click=false",
data: {'turbo-frame-target': 'frame'})
data: {'turbo-frame-target': 'frame'})

0 comments on commit 03e47f7

Please sign in to comment.