{#if info || phase === "ready"}
{#if phase === "ready"}
Update ready
{#if info}
v{info.version}
{/if}
Apply
Dismiss
{:else if phase === "downloading"}
Downloading
{#if info}
v{info.version}
{/if} {#if progress}
{formatBytes(progress.downloaded)}{progress.total ? ` / ${formatBytes(progress.total)}` : ""}
{/if}
{:else if phase === "error"}
Update error
{#if errMsg}
{errMsg}
{/if}
Dismiss
{:else if info}
Update available
v{info.version}
v{info.current_version}
{#if info.download_url}
Download
{/if}
Notes
Dismiss
{/if}
{/if}