Change button text while loading

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-02-16 14:22:45 +01:00
parent 4f66416fdd
commit 27ad068c63
3 changed files with 3 additions and 3 deletions

View File

@@ -139,7 +139,7 @@ export function AuditRow(props: { audit: AuditRowFragment$key }) {
icon={downloading ? Spinner : IconArrowInbox}
onClick={() => void handleDownload()}
>
{__("Download")}
{downloading ? __("Downloading") : __("Download")}
</Button>
)
: viewer

View File

@@ -124,7 +124,7 @@ export function DocumentRow(props: { document: DocumentRowFragment$key }) {
icon={downloading ? Spinner : IconArrowInbox}
onClick={() => void handleDownload()}
>
{__("Download")}
{downloading ? __("Downloading") : __("Download")}
</Button>
)
: viewer

View File

@@ -128,7 +128,7 @@ export function TrustCenterFileRow(props: {
icon={downloading ? Spinner : IconArrowInbox}
onClick={() => void handleDownload()}
>
{__("Download")}
{downloading ? __("Downloading") : __("Download")}
</Button>
)
: viewer