Skip to content

Commit

Permalink
Resolve issues
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick11514 committed Oct 9, 2024
1 parent e8b2442 commit 215f313
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/Teacher/AllTasks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type RawTask = Omit<Task, 'date'> & {
};
type SortValue = 'asc' | 'desc';
type OderColumn = 'created_at' | 'name';
type OrderColumn = 'created_at' | 'name';
/**
* Get tasks from API
Expand All @@ -35,7 +35,7 @@ const getTasks = async (
subject: string,
count: number,
start = 0,
sortCol: OderColumn,
sortCol: OrderColumn,
sort: SortValue = 'desc',
search: string = ''
): Promise<[number, Task[]]> => {
Expand Down Expand Up @@ -152,7 +152,7 @@ const options = {
callback: (data: { data: Task[]; recordsTotal: number; recordsFiltered: number }) => void
) => {
let col = data.order.find((order) => order.column === 3);
let orderColumn: OderColumn = 'created_at';
let orderColumn: OrderColumn = 'created_at';
if (!col) {
col = data.order.find((order) => order.column === 1);
if (col) orderColumn = 'name';
Expand Down Expand Up @@ -198,7 +198,7 @@ const onChangeSubject = () => {

<DataTable ref="dataTable" class="table table-striped" :columns="columns" :options="options">
<template #moss="props">
<a class="btn btn-secondary btn-sm" :href="`/teacher/task/${props.cellData.id}/moss`">
<a class="btn btn-secondary btn-sm" :href="`/teacher/task/${props.cellData.id}/plagcheck`">
MOSS check
</a>
</template>
Expand Down

0 comments on commit 215f313

Please sign in to comment.