{#if confirmDeleteLibrary} (confirmDeleteLibrary = null)} /> {/if} {#if toCreateLibrary} handleCreate(detail.ownerId)} on:cancel={() => (toCreateLibrary = false)} /> {/if}
{#if libraries.length > 0} handleScanAll()}>
Scan All Libraries
{/if} (toCreateLibrary = true)}>
Create Library
{#if libraries.length > 0} {#each libraries as library, index (library.id)} {#if totalCount[index] == undefined} {:else} {/if} {#if renameLibrary === index}
handleUpdate(detail)} on:cancel={() => (renameLibrary = null)} />
{/if} {#if editImportPaths === index}
handleUpdate(detail)} on:cancel={() => (editImportPaths = null)} />
{/if} {#if editScanSettings === index}
handleUpdate(library)} on:cancel={() => (editScanSettings = null)} />
{/if} {/each}
Type Name Owner Assets Size
{library.name} {#if owner[index] == undefined} {:else}{owner[index].name}{/if} {totalCount[index]} {diskUsage[index]} {diskUsageUnit[index]} showMenu(e, library, index)} /> {#if showContextMenu} onMenuExit()}> onRenameClicked()} text={`Rename`} /> {#if selectedLibrary} onEditImportPathClicked()} text="Edit Import Paths" /> onScanSettingClicked()} text="Scan Settings" />
onScanNewLibraryClicked()} text="Scan New Library Files" /> onScanAllLibraryFilesClicked()} text="Re-scan All Library Files" subtitle={'Only refreshes modified files'} /> onForceScanAllLibraryFilesClicked()} text="Force Re-scan All Library Files" subtitle={'Refreshes every file'} />
onRemoveOfflineFilesClicked()} text="Remove Offline Files" /> onDeleteLibraryClicked()}>

Delete library

{/if}
{/if}
{:else} (toCreateLibrary = true)} /> {/if}