diff --git a/src/App.js b/src/App.js
index fb4d8173..e562e64e 100755
--- a/src/App.js
+++ b/src/App.js
@@ -250,6 +250,7 @@ class App extends Component {
if (oldNode) {
newNode.lat = oldNode.lat;
newNode.lng = oldNode.lng;
+ newNode.terminated = oldNode.terminated;
} else {
const ip = newNode.gossip.split(':')[0];
const [lat, lng] = await geoip(ip);
diff --git a/src/BxDialogWorldMap.jsx b/src/BxDialogWorldMap.jsx
index 19596046..9d628420 100644
--- a/src/BxDialogWorldMap.jsx
+++ b/src/BxDialogWorldMap.jsx
@@ -1,6 +1,7 @@
import React from 'react';
import CloseIcon from '@material-ui/icons/Close';
import ComputerIcon from '@material-ui/icons/Computer';
+import PowerOffIcon from '@material-ui/icons/PowerOff';
import Dialog from '@material-ui/core/Dialog';
import DialogTitle from '@material-ui/core/DialogTitle';
import IconButton from '@material-ui/core/IconButton';
@@ -43,6 +44,8 @@ class Node extends React.Component {
const result = await connection.fullnodeExit();
if (!result) {
window.alert('Node declined to exit');
+ } else {
+ node.terminated = true;
}
}
} catch (err) {
@@ -67,7 +70,7 @@ class Node extends React.Component {
onClick={this.handleClick}
{...other}
>
-