Simplify arming steps

This commit is contained in:
2018-05-16 22:14:41 -06:00
parent 3388e86d3d
commit 56ef19708d
5 changed files with 727 additions and 35 deletions

View File

@@ -7,7 +7,7 @@ import { Link, Route } from 'react-router-dom';
import io from 'socket.io-client';
// Move to env var
const SERVER_URL = "http://tools.protospace.ca:8080";
const SERVER_URL = 'http://localhost:8080';
class App extends Component {
constructor() {
@@ -106,7 +106,6 @@ class App extends Component {
<Loader>Loading</Loader>
</Dimmer>
}
</div>
);
}

View File

@@ -70,7 +70,7 @@ class Tool extends Component {
disabled={!approved || !decodedStatus.canDisarm}
onClick={() => requestInterlock({toolId: tool.id, action: 'disarm',})}
>
<Icon name='stop' /> Disarm
<Icon name='stop' /> Disarm
</Button>
</div>
{approved || <Label basic color='red' pointing>