diff --git a/src/view/FileList.svelte b/src/view/FileList.svelte index 696e4b9..9f70487 100644 --- a/src/view/FileList.svelte +++ b/src/view/FileList.svelte @@ -243,6 +243,7 @@ (menuInode = row.inode)} onClickRename={() => { renameValue = menuInode.basename; diff --git a/src/view/FileListCell.svelte b/src/view/FileListCell.svelte index ea950a5..170dd81 100644 --- a/src/view/FileListCell.svelte +++ b/src/view/FileListCell.svelte @@ -23,11 +23,12 @@ OverflowMenu, OverflowMenuItem, } from "carbon-components-svelte"; - import type { DataTableCell } from "carbon-components-svelte/types/DataTable/DataTable.svelte"; + import type { DataTableCell, DataTableRow } from "carbon-components-svelte/types/DataTable/DataTable.svelte"; import type { FileSystem } from "../model/FileSystem"; export let fs: FileSystem; export let cell: DataTableCell; + export let row: DataTableRow; export let onClickMenu: (e?: Event) => void; export let onClickRename: (e?: Event) => void; export let onClickDetails: (e?: Event) => void; @@ -61,7 +62,7 @@ {cell.value.getIconChar()} {#if cell.value instanceof File} - + {#key $locale} - {cell.display ? cell.display(cell.value) : cell.value} + {cell.display ? cell.display(cell.value, row) : cell.value} {/key} {/if}