Skip to content

Commit 4db12a1

Browse files
committed
Move dataset list typing to more generalized history content list handling
1 parent 0a4bbff commit 4db12a1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

client/src/components/Dataset/DatasetList.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { BAlert, BTable } from "bootstrap-vue";
33
import { storeToRefs } from "pinia";
44
import { computed, onMounted, ref } from "vue";
55
6-
import { GalaxyApi, type HDASummary } from "@/api";
6+
import { GalaxyApi, type HistoryItemSummary } from "@/api";
77
import { copyContent } from "@/api/datasets";
88
import { updateTags } from "@/api/tags";
99
import { useHistoryStore } from "@/stores/historyStore";
@@ -26,7 +26,7 @@ const message = ref("");
2626
const loading = ref(true);
2727
const sortDesc = ref(true);
2828
const sortBy = ref("update_time");
29-
const rows = ref<HDASummary[]>([]);
29+
const rows = ref<HistoryItemSummary[]>([]);
3030
const messageVariant = ref("danger");
3131
const fields = ref([
3232
{
@@ -86,7 +86,7 @@ async function load(concat = false) {
8686
rethrowSimple(error);
8787
}
8888
89-
const datasets = data as HDASummary[];
89+
const datasets = data as HistoryItemSummary[];
9090
9191
if (concat) {
9292
rows.value = rows.value.concat(datasets);
@@ -100,7 +100,7 @@ async function load(concat = false) {
100100
}
101101
}
102102
103-
async function onCopyContent(item: HDASummary) {
103+
async function onCopyContent(item: HistoryItemSummary) {
104104
const dataset_id = item.id;
105105
try {
106106
if (!currentHistoryId.value) {
@@ -113,7 +113,7 @@ async function onCopyContent(item: HDASummary) {
113113
}
114114
}
115115
116-
async function onShowDataset(item: HDASummary) {
116+
async function onShowDataset(item: HistoryItemSummary) {
117117
const { history_id } = item;
118118
const filters = {
119119
deleted: item.deleted,

0 commit comments

Comments
 (0)