From 85919e238389a0995e10c5d9c95c52ce80eb811a Mon Sep 17 00:00:00 2001 From: Jim Laney Date: Sat, 26 Oct 2024 11:57:42 -0700 Subject: [PATCH 1/3] fix lifecycle for import modal --- .../components/import/canvas.vue | 44 ++++++++-------- .../components/import/convert-options.vue | 15 +++--- .../components/import/source-options.vue | 50 ++++++++++--------- .../components/import/upload.vue | 23 +++++---- course_grader_vue/stores/state.js | 3 ++ 5 files changed, 73 insertions(+), 62 deletions(-) diff --git a/course_grader_vue/components/import/canvas.vue b/course_grader_vue/components/import/canvas.vue index 7e57b02..a7e0fb5 100644 --- a/course_grader_vue/components/import/canvas.vue +++ b/course_grader_vue/components/import/canvas.vue @@ -6,32 +6,32 @@ {{ errorResponse.data.error }} -
-
- There was an error importing grades from Canvas ({{ gradeImport.status_code }}). +
+
+ There was an error importing grades from Canvas ({{ appState.gradeImport.status_code }}).
-
-

+

+

One grade found for {{ section.section_name }} in - {{ gradeImport.source_name }}. + {{ appState.gradeImport.source_name }}.

- {{ gradeImport.grade_count }} total grades found for + {{ appState.gradeImport.grade_count }} total grades found for {{ section.section_name }} in - {{ gradeImport.source_name }}. + {{ appState.gradeImport.source_name }}.

- diff --git a/course_grader_vue/components/import/upload.vue b/course_grader_vue/components/import/upload.vue index c6aec30..ab78c2f 100644 --- a/course_grader_vue/components/import/upload.vue +++ b/course_grader_vue/components/import/upload.vue @@ -4,23 +4,23 @@ {{ section.section_name }}

-
-
+
+

- {{ gradeImport.grade_count }} of + {{ appState.gradeImport.grade_count }} of {{ expectedGradeCount }} {{ ngettext("grade", "grades", expectedGradeCount) }} found in the file {{ file.name }}

- +
No grades found for {{ section.section_name }} - in this {{ gradeImport.source_name }}. Select a - different source for import or enter grades manually. + in this {{ appState.gradeImport.source_name }}. + Select a different source for import or enter grades manually.
@@ -133,7 +133,7 @@ >see other options for submitting grades.

-
+