Fix download behavior for hidden file tree

This commit fixes a regression from 944b4551, where the behavior was changed by mistake.
This commit is contained in:
Sebastian Serth
2023-11-11 20:31:01 +01:00
parent bcbb2d2eb6
commit 7026f14725

View File

@ -33,7 +33,7 @@
#statusbar.d-flex.justify-content-between #statusbar.d-flex.justify-content-between
div div
- if !@embed_options[:disable_download] && !@exercise.hide_file_tree? - if !@embed_options[:disable_download] && @exercise.hide_file_tree?
button#download.p-0.border-0.btn-link.visible.bg-body.text-primary button#download.p-0.border-0.btn-link.visible.bg-body.text-primary
i.fa-solid.fa-arrow-down i.fa-solid.fa-arrow-down
= t('exercises.editor.download') = t('exercises.editor.download')