|
@@ -118,6 +118,14 @@ const columns = ref<TableColumn[]>([
|
|
sortProperty: "songId",
|
|
sortProperty: "songId",
|
|
defaultWidth: 220,
|
|
defaultWidth: 220,
|
|
defaultVisibility: "hidden"
|
|
defaultVisibility: "hidden"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: "uploadedAt",
|
|
|
|
+ displayName: "Uploaded At",
|
|
|
|
+ properties: ["uploadedAt"],
|
|
|
|
+ sortProperty: "uploadedAt",
|
|
|
|
+ defaultWidth: 200,
|
|
|
|
+ defaultVisibility: "hidden"
|
|
}
|
|
}
|
|
]);
|
|
]);
|
|
const filters = ref<TableFilter[]>([
|
|
const filters = ref<TableFilter[]>([
|
|
@@ -182,6 +190,13 @@ const filters = ref<TableFilter[]>([
|
|
property: "songId",
|
|
property: "songId",
|
|
filterTypes: ["contains", "exact", "regex"],
|
|
filterTypes: ["contains", "exact", "regex"],
|
|
defaultFilterType: "contains"
|
|
defaultFilterType: "contains"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: "uploadedAt",
|
|
|
|
+ displayName: "Uploaded At",
|
|
|
|
+ property: "uploadedAt",
|
|
|
|
+ filterTypes: ["datetimeBefore", "datetimeAfter"],
|
|
|
|
+ defaultFilterType: "datetimeBefore"
|
|
}
|
|
}
|
|
]);
|
|
]);
|
|
const events = ref<TableEvents>({
|
|
const events = ref<TableEvents>({
|
|
@@ -381,6 +396,11 @@ const removeVideos = videoIds => {
|
|
slotProps.item.songId
|
|
slotProps.item.songId
|
|
}}</span>
|
|
}}</span>
|
|
</template>
|
|
</template>
|
|
|
|
+ <template #column-uploadedAt="slotProps">
|
|
|
|
+ <span :title="new Date(slotProps.item.uploadedAt).toString()">{{
|
|
|
|
+ utils.getDateFormatted(slotProps.item.uploadedAt)
|
|
|
|
+ }}</span>
|
|
|
|
+ </template>
|
|
<template #bulk-actions="slotProps">
|
|
<template #bulk-actions="slotProps">
|
|
<div class="bulk-actions">
|
|
<div class="bulk-actions">
|
|
<i
|
|
<i
|