diff --git a/frontend/src/components/Assessments.vue b/frontend/src/components/Assessments.vue index db293da1a..ee5286360 100644 --- a/frontend/src/components/Assessments.vue +++ b/frontend/src/components/Assessments.vue @@ -41,6 +41,11 @@
{{ row[column.key] == 'LMS Quiz' ? 'Quiz' : 'Assignment' }}
+
+ + {{ row[column.key] }} + +
{{ row[column.key] }}
@@ -83,6 +88,7 @@ import { ListSelectBanner, createResource, Button, + Badge, } from 'frappe-ui' import { inject, ref } from 'vue' import AssessmentModal from '@/components/Modals/AssessmentModal.vue' @@ -180,7 +186,7 @@ const getAssessmentColumns = () => { { label: 'Assessment', key: 'title', - width: '30rem', + width: '25rem', }, { label: 'Type', @@ -199,4 +205,14 @@ const getAssessmentColumns = () => { } return columns } + +const getStatusTheme = (status) => { + if (status === 'Pass') { + return 'green' + } else if (status === 'Not Graded') { + return 'orange' + } else { + return 'red' + } +} diff --git a/frontend/src/components/Controls/Link.vue b/frontend/src/components/Controls/Link.vue index 6c2de9a58..b25523cb7 100644 --- a/frontend/src/components/Controls/Link.vue +++ b/frontend/src/components/Controls/Link.vue @@ -29,8 +29,8 @@ -