Skip to content

Commit

Permalink
Added a gear icon to Edit Node Source
Browse files Browse the repository at this point in the history
  • Loading branch information
kreut committed Aug 1, 2023
1 parent c6c85dc commit 9431cc6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Middleware/SetAppVersionHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function handle($request, Closure $next)
//$app_version = env('VAPOR_COMMIT_HASH') ? env('VAPOR_COMMIT_HASH') : '1.0';
if(!$response instanceof StreamedResponse) {
//https://stackoverflow.com/questions/72060913/call-to-undefined-method-symfony-component-httpfoundation-streamedresponsehead
$response->header('appversion', '1.53');
$response->header('appversion', '1.54');
}
return $response;
}
Expand Down
2 changes: 1 addition & 1 deletion resources/js/pages/instructors/learning_trees.editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
/>
<has-error :form="nodeForm" field="question_id"/>
<span class="pl-2"><b-button size="sm" variant="info" @click="editSource">
{{ questionToView.can_edit ? 'Edit' : 'View' }} Node Source
<b-icon icon="gear"/> {{ questionToView.can_edit ? 'Edit' : 'View' }} Node Source
</b-button></span>
<span class="pl-2">
<b-button
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/LearningTreeNodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function correctly_applies_reset()
$this->node_question->technology = 'h5p';
$this->node_question->save();
$this->actingAs($this->student_user)->getJson("api/learning-tree-node-submission/{$this->learning_tree_node_submission->id}")
->assertJson(['message' => 'Your submission was correct. You have earned a reset and can retry the original question.']);
->assertJson(['message' => 'Your submission was correct. You have earned a reset and can retry the root question for points.']);

$this->assertDatabaseHas('learning_tree_resets', [
'user_id' => $this->student_user->id,
Expand Down

0 comments on commit 9431cc6

Please sign in to comment.