diff --git a/js/menus/templates/SendMenuView.html b/js/menus/templates/SendMenuView.html index d508ee3d9e28ecd1d8a103047498a6cf889c0979..de21d124369af75d94cc34b799fccf508cd33137 100644 --- a/js/menus/templates/SendMenuView.html +++ b/js/menus/templates/SendMenuView.html @@ -1,3 +1,7 @@ -Incoming: <pre id="incomingSerialMessage"></pre><br/><br/> -Out: <input id="sendSerialMessage" value="" placeholder="Send Message" class="seventyFiveWidth form-control unresponsiveInput" type="text"><br/><br/> -<a href="#" id="stopMachine" class="btn btn-block btn-lg btn-danger">Stop</a><br/> \ No newline at end of file +<% if(connected){ %> + Incoming: <pre id="incomingSerialMessage"></pre><br/><br/> + Out: <input id="sendSerialMessage" value="" placeholder="Send Message" class="seventyFiveWidth form-control unresponsiveInput" type="text"><br/><br/> + <a href="#" id="stopMachine" class="btn btn-block btn-lg btn-danger">Stop</a><br/> +<% }else{ %> + Not connected, go back to setup tab and connect to Node server. +<% } %> \ No newline at end of file