Skip to content

Commit

Permalink
fix(materials): fix Root folder title
Browse files Browse the repository at this point in the history
before this commit, all folder named 'Root' will be overwritten with course.material.sidebar_title
  • Loading branch information
cysjonathan committed Nov 12, 2024
1 parent 7ae1e0f commit 2c5354b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/course/material/folders/show.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ end

json.breadcrumbs @folder.ancestors.reverse << @folder do |folder|
json.id folder.id
json.name folder.name == 'Root' ? @settings.title || t('course.material.sidebar_title') : folder.name
json.name folder.parent_id.nil? ? @settings.title || t('course.material.sidebar_title') : folder.name
end

json.advanceStartAt current_course.advance_start_at_duration
Expand Down

0 comments on commit 2c5354b

Please sign in to comment.