forked from p15670423/monkey
UI: Rename function in RunOptions.js more appropriately
This commit is contained in:
parent
c357ee410e
commit
88f156ea40
|
@ -55,8 +55,7 @@ function RunOptions(props) {
|
||||||
return InlineSelection(defaultContents, newProps);
|
return InlineSelection(defaultContents, newProps);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Change function name
|
function isNotRansomware(islandMode){
|
||||||
function shouldShowScoutsuite(islandMode){
|
|
||||||
return islandMode !== 'ransomware';
|
return islandMode !== 'ransomware';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,7 +72,7 @@ function RunOptions(props) {
|
||||||
setComponent(LocalManualRunOptions,
|
setComponent(LocalManualRunOptions,
|
||||||
{ips: ips, setComponent: setComponent})
|
{ips: ips, setComponent: setComponent})
|
||||||
}}/>
|
}}/>
|
||||||
{shouldShowScoutsuite(props.islandMode) && <AWSRunButton setComponent={setComponent}/> }
|
{isNotRansomware(props.islandMode) && <AWSRunButton setComponent={setComponent}/> }
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue