- {tag.Key}: {tag.Value}
+
+
+ {tag.Key}: {tag.Value}
+
{canEditObjectTags ? (
) : null}
@@ -676,9 +705,11 @@ export function ObjectInfo({ bucketName, objectKey, open, onOpenChange, onPrevie
>
- {t("Tag Key")}
+ {t("Tag Key")}
setTagFormValue((v) => ({ ...v, Key: e.target.value }))}
placeholder={t("Tag Key Placeholder")}
@@ -687,9 +718,11 @@ export function ObjectInfo({ bucketName, objectKey, open, onOpenChange, onPrevie
- {t("Tag Value")}
+ {t("Tag Value")}
setTagFormValue((v) => ({
@@ -739,9 +772,14 @@ export function ObjectInfo({ bucketName, objectKey, open, onOpenChange, onPrevie
].map((opt) => (
))}
diff --git a/components/object/list.tsx b/components/object/list.tsx
index 704dc42f..0c751381 100644
--- a/components/object/list.tsx
+++ b/components/object/list.tsx
@@ -39,7 +39,7 @@ import { useApi } from "@/contexts/api-context"
import { useMessage } from "@/lib/feedback/message"
import { exportFile } from "@/lib/export-file"
import { getContentType } from "@/lib/mime-types"
-import { formatBytes } from "@/lib/functions"
+import { formatBytes, formatDateTime } from "@/lib/functions"
import { normalizeDateToIso } from "@/lib/safe-date"
import { buildBucketPath } from "@/lib/bucket-path"
import {
@@ -66,7 +66,6 @@ import {
import { TaskStatsButton } from "@/components/tasks/stats-button"
import { useAddDeleteKeys, useAddDeleteFolder, useTasks } from "@/contexts/task-context"
import type { ColumnDef } from "@tanstack/react-table"
-import dayjs from "dayjs"
interface ObjectRow {
Key: string
@@ -348,21 +347,21 @@ export function ObjectList({
return (
-
- {display}
+
+ {display}
)
}
return (
)
},
@@ -382,8 +381,7 @@ export function ObjectList({
id: "lastModified",
header: () => t("Last Modified"),
accessorFn: (row) => (row.type === "prefix" || !row.LastModified ? "" : new Date(row.LastModified).getTime()),
- cell: ({ row }) =>
- row.original.LastModified ? dayjs(row.original.LastModified).format("YYYY-MM-DD HH:mm:ss") : "-",
+ cell: ({ row }) => (row.original.LastModified ? formatDateTime(row.original.LastModified) : "-"),
},
{
id: "actions",
@@ -401,13 +399,13 @@ export function ObjectList({
onPreview({ key: row.original.Key })
}}
>
-
+
{t("Preview")}
) : null}
{canCapability("objects.download", { bucket, objectKey: row.original.Key }) ? (
) : null}
@@ -415,7 +413,7 @@ export function ObjectList({
) : null}
{canCapability("objects.delete", { bucket, objectKey: row.original.Key }) ? (
) : null}
@@ -590,7 +588,7 @@ export function ObjectList({
{canUpload ? (
>
@@ -630,8 +628,15 @@ export function ObjectList({
clearable
className="lg:max-w-sm"
/>
-
@@ -656,7 +661,7 @@ export function ObjectList({
{t("Rows per page")}
-
+
{t("Previous Page")}
{t("Next Page")}
-
+