{#if !files || files.length == 0} {:else} formatFileSize(row.size) }, !electron && { fieldName: 'download', header: 'Download', slot: 0, }, electron && { fieldName: 'copy', header: 'Copy', slot: 1, }, electron && { fieldName: 'show', header: 'Show', slot: 2, }, ]} > download { const file = await electron.showSaveDialog({}); if (file) { const fs = window.require('fs'); fs.copyFile(row.path, file, () => {}); } }} > save { electron.showItemInFolder(row.path); }} > show {/if}