Skip to content

Commit

Permalink
Merge pull request #1331 from openedx/eahmadjaved/ENT-9590
Browse files Browse the repository at this point in the history
fix: disabale dropdowns while loading data on analyticsV2
  • Loading branch information
jajjibhai008 authored Oct 9, 2024
2 parents 25db621 + 6c4d7ec commit fdacee1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/AdvanceAnalyticsV2/AnalyticsV2Page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const AnalyticsV2Page = ({ enterpriseId }) => {
id="advance.analytics.data.refresh.msg"
defaultMessage="Data updated on {date}"
description="Data refresh message"
values={{ date: data?.lastUpdatedAt || '' }}
values={{ date: data?.lastUpdatedAt || currentDate }}
/>
</span>
</div>
Expand All @@ -64,6 +64,7 @@ const AnalyticsV2Page = ({ enterpriseId }) => {
value={startDate || data?.minEnrollmentDate}
min={data?.minEnrollmentDate}
onChange={(e) => setStartDate(e.target.value)}
disabled={isFetching}
/>
</Form.Group>
</div>
Expand All @@ -81,6 +82,7 @@ const AnalyticsV2Page = ({ enterpriseId }) => {
value={endDate || currentDate}
max={currentDate}
onChange={(e) => setEndDate(e.target.value)}
disabled={isFetching}
/>
</Form.Group>
</div>
Expand All @@ -97,6 +99,7 @@ const AnalyticsV2Page = ({ enterpriseId }) => {
as="select"
value={granularity}
onChange={(e) => setGranularity(e.target.value)}
disabled={isFetching}
>
<option value={GRANULARITY.DAILY}>
{intl.formatMessage({
Expand Down Expand Up @@ -142,6 +145,7 @@ const AnalyticsV2Page = ({ enterpriseId }) => {
as="select"
value={calculation}
onChange={(e) => setCalculation(e.target.value)}
disabled={isFetching}
>
<option value={CALCULATION.TOTAL}>
{intl.formatMessage({
Expand Down

0 comments on commit fdacee1

Please sign in to comment.