1
0
forked from Cutlery/immich

fix spinner

This commit is contained in:
Jonathan Jogenfors 2024-03-17 00:26:19 +01:00
parent f8039a7d57
commit a3ce28bfc9

View File

@ -397,16 +397,20 @@
{:else}{owner[index].name}{/if} {:else}{owner[index].name}{/if}
</td> </td>
{#if totalCount[index] == undefined} <td class=" text-ellipsis px-4 text-sm">
<td colspan="2" class="flex w-1/3 items-center justify-center text-ellipsis px-4 text-sm"> {#if totalCount[index] == undefined}
<LoadingSpinner size="40" /> <LoadingSpinner size="40" />
</td> {:else}
{:else}
<td class=" text-ellipsis px-4 text-sm">
{totalCount[index]} {totalCount[index]}
</td> {/if}
<td class=" text-ellipsis px-4 text-sm">{diskUsage[index]} {diskUsageUnit[index]}</td> </td>
{/if} <td class=" text-ellipsis px-4 text-sm">
{#if totalCount[index] == undefined}
<LoadingSpinner size="40" />
{:else}
{diskUsage[index]} {diskUsageUnit[index]}
{/if}
</td>
<td class=" text-ellipsis px-4 text-sm"> <td class=" text-ellipsis px-4 text-sm">
<button <button
@ -426,10 +430,7 @@
<MenuOption on:click={() => onScanSettingClicked()} text="Scan Settings" /> <MenuOption on:click={() => onScanSettingClicked()} text="Scan Settings" />
<hr /> <hr />
<MenuOption on:click={() => onScanNewLibraryClicked()} text="Scan New Library Files" /> <MenuOption on:click={() => onScanNewLibraryClicked()} text="Scan New Library Files" />
<MenuOption <MenuOption on:click={() => onScanDeletedLibraryClicked()} text="Scan For Deleted Files" />
on:click={() => onScanDeletedLibraryClicked()}
text="Scan Deleted Library Files"
/>
<MenuOption <MenuOption
on:click={() => onScanAllLibraryFilesClicked()} on:click={() => onScanAllLibraryFilesClicked()}