Merge branch '2.0.0' of github.com:satti-hari-krishna-reddy/Shuffle into 2.0.0
This commit is contained in:
@@ -15416,7 +15416,7 @@ const releaseToConnectLabel = "Release to Connect"
|
||||
toast("please stop the trigger to edit the configuration");
|
||||
return;
|
||||
} else {
|
||||
setSelectedOption("Sigma Rulesearch");
|
||||
setSelectedOption("SigmaRule");
|
||||
setTenzirConfigModalOpen(true);
|
||||
}}}
|
||||
style={{
|
||||
@@ -15432,8 +15432,8 @@ const releaseToConnectLabel = "Release to Connect"
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Radio
|
||||
checked={selectedOption === "Sigma Rulesearch"}
|
||||
onChange={() => setSelectedOption("Sigma Rulesearch")}
|
||||
checked={selectedOption === "SigmaRule"}
|
||||
onChange={() => setSelectedOption("SigmaRule")}
|
||||
value={"Sigma Rulesearch"}
|
||||
name="option"
|
||||
/>
|
||||
@@ -21193,10 +21193,8 @@ const releaseToConnectLabel = "Release to Connect"
|
||||
</Dialog>
|
||||
) : null;
|
||||
|
||||
const tenzirConfigModal = () => {
|
||||
if (!tenzirConfigModalOpen) return null;
|
||||
|
||||
const [loading, setLoading] = useState(true);
|
||||
const TenzirConfigModal = () => {
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [selectedRules, setSelectedRules] = useState([]);
|
||||
|
||||
const handleRuleChange = (event) => {
|
||||
@@ -21240,6 +21238,9 @@ const releaseToConnectLabel = "Release to Connect"
|
||||
|
||||
const enabledSigmaInfo = rules.filter(rule => rule.is_enabled);
|
||||
|
||||
if (!tenzirConfigModalOpen) return null;
|
||||
|
||||
return (
|
||||
<Dialog
|
||||
PaperComponent={PaperComponent}
|
||||
hideBackdrop={true}
|
||||
@@ -21275,7 +21276,7 @@ const releaseToConnectLabel = "Release to Connect"
|
||||
}}
|
||||
>
|
||||
<DialogContent>
|
||||
{selectedOption === 'sigmaRule' && (
|
||||
{selectedOption === 'SigmaRule' && (
|
||||
<>
|
||||
<FormControl fullWidth>
|
||||
<InputLabel>Select Sigma Rules</InputLabel>
|
||||
@@ -21317,10 +21318,12 @@ const releaseToConnectLabel = "Release to Connect"
|
||||
<CloseIcon />
|
||||
</IconButton>
|
||||
</Dialog>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
const SuggestionBoxUi = () => {
|
||||
const [suggestionValue, setSuggestionValue] = useState("");
|
||||
const [suggestionLoading, setSuggestionLoading] = useState(false);
|
||||
@@ -21897,7 +21900,7 @@ const releaseToConnectLabel = "Release to Connect"
|
||||
{codePopoutModal}
|
||||
{workflowRevisions}
|
||||
{authenticationModal}
|
||||
{tenzirConfigModal}
|
||||
{<TenzirConfigModal/>}
|
||||
{/*editWorkflowModal*/}
|
||||
{authgroupModal}
|
||||
{executionArgumentModal}
|
||||
|
||||
Reference in New Issue
Block a user