fix: assignment dirty state and comments view to student

This commit is contained in:
Jannat Patel
2025-01-02 14:53:38 +05:30
parent 2ed583a0c3
commit 4d133b2f99
6 changed files with 88 additions and 42 deletions

View File

@@ -19,6 +19,7 @@
:options="{
showTooltip: false,
getRowRoute: (row) => getRowRoute(row),
selectable: user.data?.is_student ? false : true,
}"
>
<ListHeader
@@ -41,7 +42,10 @@
<div v-if="column.key == 'assessment_type'">
{{ row[column.key] == 'LMS Quiz' ? 'Quiz' : 'Assignment' }}
</div>
<div v-else-if="column.key == 'status'">
<div v-else-if="column.key == 'title'">
{{ row[column.key] }}
</div>
<div v-else-if="isNaN(row[column.key])">
<Badge :theme="getStatusTheme(row[column.key])">
{{ row[column.key] }}
</Badge>
@@ -191,15 +195,15 @@ const getAssessmentColumns = () => {
{
label: 'Type',
key: 'assessment_type',
width: '10rem',
width: '15rem',
},
]
if (!user.data?.is_moderator) {
columns.push({
label: 'Status/Score',
label: 'Status/Percentage',
key: 'status',
align: 'center',
align: 'left',
width: '10rem',
})
}