Better handle download errors

This commit is contained in:
2023-06-13 14:26:09 +02:00
parent eff4b366ce
commit c617997017
3 changed files with 24 additions and 6 deletions

View File

@@ -448,10 +448,11 @@ const keyboard_event = evt => {
<div class="separator"></div>
{#if view === "file" && file.can_download && !disable_download_button}
{#if view === "file" && !disable_download_button}
<button
on:click={downloader.download_file}
class="toolbar_button"
class:button_red={file.can_download === false}
title="Save this file to your computer">
<i class="icon">download</i>
<span>Download</span>