{#if toCreateLibrary} handleCreate(detail.ownerId)} on:cancel={() => (toCreateLibrary = false)} /> {/if}
{#if libraries.length > 0} handleScanAll()}>
{$t('scan_all_libraries')}
{/if} (toCreateLibrary = true)}>
{$t('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}
{$t('type')} {$t('name')} {$t('owner')} {$t('assets')} {$t('size')}
{library.name} {#if owner[index] == undefined} {:else}{owner[index].name}{/if} {totalCount[index]} {diskUsage[index]} {diskUsageUnit[index]} onRenameClicked(index)} text={$t('rename')} /> onEditImportPathClicked(index)} text={$t('edit_import_paths')} /> onScanSettingClicked(index)} text={$t('scan_settings')} />
onScanNewLibraryClicked(library)} text={$t('scan_new_library_files')} /> onScanAllLibraryFilesClicked(library)} text={$t('scan_all_library_files')} subtitle={$t('only_refreshes_modified_files')} /> onForceScanAllLibraryFilesClicked(library)} text={$t('force_re-scan_library_files')} subtitle={$t('refreshes_every_file')} />
onRemoveOfflineFilesClicked(library)} text={$t('remove_offline_files')} /> onDeleteLibraryClicked(library, index)} />
{:else} (toCreateLibrary = true)} /> {/if}