Skip to content

Commit

Permalink
fix(ui): TE-XX fixed regression issues in create alert
Browse files Browse the repository at this point in the history
  • Loading branch information
harshilvelotio committed Nov 25, 2024
1 parent f2b5cc4 commit d1d006f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and limitations under
* the License.
*/
import { Box, Button, Grid } from "@material-ui/core";
import { Grid } from "@material-ui/core";
import { isEqual } from "lodash";
import React, { FunctionComponent, useEffect, useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
Expand Down Expand Up @@ -176,9 +176,12 @@ export const AlertCompositeFiltersModal: FunctionComponent<AlertCompositeFilters
return (
<Modal
initiallyOpen
disableSubmitButton={selectedCohorts.length === 0}
maxWidth="md"
submitButtonLabel={t("label.add-selected-dimensions")}
title={t("label.add-dimensions")}
onCancel={onCancel}
onSubmit={handleCreateBtnClick}
>
<Grid item xs={12}>
<DatasetDetails
Expand Down Expand Up @@ -213,17 +216,7 @@ export const AlertCompositeFiltersModal: FunctionComponent<AlertCompositeFilters
getCohortsRequestStatus={status}
initiallySelectedCohorts={initiallySelectedCohorts}
onSelectionChange={handleCohortsSelectionChange}
>
<Box textAlign="right">
<Button
color="primary"
disabled={selectedCohorts.length === 0}
onClick={handleCreateBtnClick}
>
{t("label.add-selected-dimensions")}
</Button>
</Box>
</CohortsTable>
/>
</Grid>
</Modal>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export const ThresholdSetupV3: FunctionComponent<ThresholdSetupProps> = ({
disableReload={
unsetProperties.length > 0 || invalidProperties.length > 0
}
hasAutoReload={false}
hasAutoReload={!!algorithmOptionConfig?.recommendationId}
onAlertPropertyChange={onAlertPropertyChange}
/>
</PageContentsCardV1>
Expand Down

0 comments on commit d1d006f

Please sign in to comment.