forked from p15670423/monkey
Island UI: rename a method in Main.tsx to be more specific: getSideNavHeader -> getIslandModeTitle
This commit is contained in:
parent
8584217e3b
commit
ff9d649b76
|
@ -186,7 +186,7 @@ class AppComponent extends AuthComponent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
getSideNavHeader() {
|
getIslandModeTitle() {
|
||||||
if(this.state.islandMode === 'ransomware'){
|
if(this.state.islandMode === 'ransomware'){
|
||||||
return "Ransomware"
|
return "Ransomware"
|
||||||
} else {
|
} else {
|
||||||
|
@ -200,7 +200,7 @@ class AppComponent extends AuthComponent {
|
||||||
onStatusChange: this.updateStatus,
|
onStatusChange: this.updateStatus,
|
||||||
islandMode: this.state.islandMode,
|
islandMode: this.state.islandMode,
|
||||||
defaultReport: this.getDefaultReport(),
|
defaultReport: this.getDefaultReport(),
|
||||||
sideNavHeader: this.getSideNavHeader()}
|
sideNavHeader: this.getIslandModeTitle()}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Router>
|
<Router>
|
||||||
|
|
Loading…
Reference in New Issue