Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

fix isLoading param for SubmitButton

Francis Caoda3cc9b06567
diff --git a/src/components/pages/reports/event-data/EventDataParameters.js b/src/components/pages/reports/event-data/EventDataParameters.js
index a01a29722..e0fadb8b8 100644
--- a/src/components/pages/reports/event-data/EventDataParameters.js
+++ b/src/components/pages/reports/event-data/EventDataParameters.js
@@ -134,7 +134,7 @@ export function EventDataParameters() {
);
})}
<FormButtons>
- <SubmitButton variant="primary" disabled={!queryEnabled} loading={isRunning}>
+ <SubmitButton variant="primary" disabled={!queryEnabled} isLoading={isRunning}>
{formatMessage(labels.runQuery)}
</SubmitButton>
</FormButtons>
diff --git a/src/components/pages/reports/funnel/FunnelParameters.js b/src/components/pages/reports/funnel/FunnelParameters.js
index 2c99a032e..a3fbe6634 100644
--- a/src/components/pages/reports/funnel/FunnelParameters.js
+++ b/src/components/pages/reports/funnel/FunnelParameters.js
@@ -80,7 +80,7 @@ export function FunnelParameters() {
<ParameterList items={urls} onRemove={handleRemoveUrl} />
</FormRow>
<FormButtons>
- <SubmitButton variant="primary" disabled={queryDisabled} loading={isRunning}>
+ <SubmitButton variant="primary" disabled={queryDisabled} isLoading={isRunning}>
{formatMessage(labels.runQuery)}
</SubmitButton>
</FormButtons>
diff --git a/src/components/pages/reports/insights/InsightsParameters.js b/src/components/pages/reports/insights/InsightsParameters.js
index db0c1d4ea..3ddc0367d 100644
--- a/src/components/pages/reports/insights/InsightsParameters.js
+++ b/src/components/pages/reports/insights/InsightsParameters.js
@@ -137,7 +137,7 @@ export function InsightsParameters() {
);
})}
<FormButtons>
- <SubmitButton variant="primary" disabled={!queryEnabled} loading={isRunning}>
+ <SubmitButton variant="primary" disabled={!queryEnabled} isLoading={isRunning}>
{formatMessage(labels.runQuery)}
</SubmitButton>
</FormButtons>
diff --git a/src/components/pages/reports/retention/RetentionParameters.js b/src/components/pages/reports/retention/RetentionParameters.js
index aa81cf472..e87108d13 100644
--- a/src/components/pages/reports/retention/RetentionParameters.js
+++ b/src/components/pages/reports/retention/RetentionParameters.js
@@ -35,7 +35,7 @@ export function RetentionParameters() {
<MonthSelect date={startDate} onChange={handleDateChange} />
</FormRow>
<FormButtons>
- <SubmitButton variant="primary" disabled={queryDisabled} loading={isRunning}>
+ <SubmitButton variant="primary" disabled={queryDisabled} isLoading={isRunning}>
{formatMessage(labels.runQuery)}
</SubmitButton>
</FormButtons>