Skip to content

Commit 3e6e0c6

Browse files
committed
show not the type switch
1 parent 8034bb0 commit 3e6e0c6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

public/app/features/alerting/unified/components/rule-editor/query-and-alert-condition/QueryAndExpressionsStep.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ import { RuleEditorSection } from '../RuleEditorSection';
3939
import { errorFromCurrentCondition, errorFromPreviewData, findRenamedDataQueryReferences, refIdExists } from '../util';
4040

4141
import { CloudDataSourceSelector } from './CloudDataSourceSelector';
42-
import { SmartAlertTypeDetector } from './SmartAlertTypeDetector';
42+
// LOGZ.IO CHANGE :: DEV-46521 remove rule type switch
43+
// import { SmartAlertTypeDetector } from './SmartAlertTypeDetector';
4344
import { DESCRIPTIONS } from './descriptions';
4445
import {
4546
addExpressions,
@@ -431,12 +432,14 @@ export const QueryAndExpressionsStep = ({ editingExistingRule, onDataChange }: P
431432
}}
432433
/>
433434
</Field>
435+
{/*
436+
// LOGZ.IO CHANGE :: DEV-46521 remove rule type switch
434437
<SmartAlertTypeDetector
435438
editingExistingRule={editingExistingRule}
436439
queries={queries}
437440
rulesSourcesWithRuler={rulesSourcesWithRuler}
438441
onClickSwitch={onClickSwitch}
439-
/>
442+
/> */}
440443
</Stack>
441444
)}
442445

@@ -468,12 +471,14 @@ export const QueryAndExpressionsStep = ({ editingExistingRule, onDataChange }: P
468471
Add query
469472
</Button>
470473
</Tooltip>
474+
{/*
475+
// LOGZ.IO CHANGE :: DEV-46521 remove rule type switch
471476
<SmartAlertTypeDetector
472477
editingExistingRule={editingExistingRule}
473478
rulesSourcesWithRuler={rulesSourcesWithRuler}
474479
queries={queries}
475480
onClickSwitch={onClickSwitch}
476-
/>
481+
/> */}
477482
{/* Expression Queries */}
478483
<Stack direction="column" gap={0}>
479484
<Text element="h5">Expressions</Text>

0 commit comments

Comments
 (0)