Skip to content

Commit c5fca90

Browse files
committed
Fix an import from Vuetify
1 parent f3a0527 commit c5fca90

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

client/src/components/NABat/NABatAdminBrowser.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
type AnnotationExportRequest,
1212
} from '@api/NABatApi';
1313
import Exporting from '../Exporting.vue';
14-
import { SortItem } from 'vuetify/lib/components/VDataTable/composables/sort';
14+
import type { DataTableSortItem } from 'vuetify';
1515
1616
export default defineComponent({
1717
name: 'NABatAdminBrowser',
@@ -27,8 +27,8 @@ export default defineComponent({
2727
const totalAnnotations = ref<number>(0);
2828
const selectedRecordingId = ref<number | null>(null);
2929
const loading = ref(false);
30-
const sortBy = ref<SortItem[]>([{ key: 'created', order: 'desc' }]);
31-
const sortByAnnotations = ref<SortItem[]>([{ key: 'created', order: 'desc' }]);
30+
const sortBy = ref<DataTableSortItem[]>([{ key: 'created', order: 'desc' }]);
31+
const sortByAnnotations = ref<DataTableSortItem[]>([{ key: 'created', order: 'desc' }]);
3232
3333
const filters = ref<{
3434
recording_id?: number;
@@ -152,15 +152,15 @@ export default defineComponent({
152152
153153
onMounted(() => fetchRecordings({ page: 1, itemsPerPage: 50 }));
154154
155-
const sortByUpdate = (newSort?: SortItem[]) => {
155+
const sortByUpdate = (newSort?: DataTableSortItem[]) => {
156156
if (newSort) {
157157
sortBy.value = newSort;
158158
} else {
159159
sortBy.value = [{ key: 'created', order: 'desc' }];
160160
}
161161
};
162162
163-
const sortByUpdateAnnotations = (newSort?: SortItem[]) => {
163+
const sortByUpdateAnnotations = (newSort?: DataTableSortItem[]) => {
164164
if (newSort) {
165165
sortByAnnotations.value = newSort;
166166
} else {

0 commit comments

Comments
 (0)