Skip to content

File Viewer

  • File: src/features/ledger/partials/FileViewer.svelte (+ typo duplicate FileViwer.svelte)

Overview

Full file detail panel for a ledger file. Wraps the FileInfo component (src/features/ledger/partials/FileInfo.svelte) and maps its actions to mutations: rename, alt-name, description, favourite, share/unshare, and delete.

Module Functions (svc/index.ts)

ts
export async function deleteFile(fileId): Promise<...>
export async function renameFile(fileId, newName): Promise<...>
export async function renameFileShare(fileId, newName): Promise<...>
export async function setFileDescription(fileId, description): Promise<...>
export async function setFileAsFavourite(fileId, isFavourite): Promise<...>
export async function deleteFileShare(fileId): Promise<...>
export async function shareFile(fileId, contacts): Promise<...>

Released under the MIT License.