Change button text while loading
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -139,7 +139,7 @@ export function AuditRow(props: { audit: AuditRowFragment$key }) {
|
||||
icon={downloading ? Spinner : IconArrowInbox}
|
||||
onClick={() => void handleDownload()}
|
||||
>
|
||||
{__("Download")}
|
||||
{downloading ? __("Downloading") : __("Download")}
|
||||
</Button>
|
||||
)
|
||||
: viewer
|
||||
|
||||
@@ -124,7 +124,7 @@ export function DocumentRow(props: { document: DocumentRowFragment$key }) {
|
||||
icon={downloading ? Spinner : IconArrowInbox}
|
||||
onClick={() => void handleDownload()}
|
||||
>
|
||||
{__("Download")}
|
||||
{downloading ? __("Downloading") : __("Download")}
|
||||
</Button>
|
||||
)
|
||||
: viewer
|
||||
|
||||
@@ -128,7 +128,7 @@ export function TrustCenterFileRow(props: {
|
||||
icon={downloading ? Spinner : IconArrowInbox}
|
||||
onClick={() => void handleDownload()}
|
||||
>
|
||||
{__("Download")}
|
||||
{downloading ? __("Downloading") : __("Download")}
|
||||
</Button>
|
||||
)
|
||||
: viewer
|
||||
|
||||
Reference in New Issue
Block a user