tiny refactor from exercise_found to task_found

This commit is contained in:
Karol
2022-01-11 22:17:09 +01:00
parent 886a5b68f6
commit 3260d8f82f
3 changed files with 3 additions and 3 deletions

View File

@@ -118,7 +118,7 @@ raise: false
partial: 'export_actions',
locals: {
exercise: @exercise,
exercise_found: codeharbor_check[:task_found],
task_found: codeharbor_check[:task_found],
update_right: codeharbor_check[:update_right],
error: codeharbor_check[:error],
exported: false,

View File

@@ -4,7 +4,7 @@
= t('exercises.export_codeharbor.buttons.retry')
- else
- unless exported
- if !exercise_found || update_right
- if !task_found || update_right
= button_tag type: 'button', class:'btn btn-primary pull-right export-action export-button', data: {exercise_id: exercise.id} do
i.fa.fa-check.confirm-icon
= t('exercises.export_codeharbor.buttons.export')