Skip to content
Permalink
Browse files

Hide unnecessary "Disconnect from node" button

  • Loading branch information
tmedetbekov committed May 2, 2019
1 parent 59ae94c commit 6cb7a20cd0d47915a1511fb389f1108ca9ed2a39
Showing with 4 additions and 10 deletions.
  1. +4 −10 views/terminal.pug
@@ -7,12 +7,6 @@ block content
div(class="row")
div(class="col")
h1(class="h3") RPC Terminal

div(class="col")
if (!config.demoSite && (!config.credentials.rpc || !config.credentials.rpc.rpc))
span(style="float: right;")
a(href="/disconnect", class="btn btn-secondary") Disconnect from node

hr

:markdown-it
@@ -28,7 +22,7 @@ block content
input(type="submit", class="btn btn-primary btn-block", value="Send")

hr

div(id="terminal-output")

block endOfBody
@@ -44,7 +38,7 @@ block endOfBody
var postData = {};
postData.cmd = cmd;
postData._csrf = csrfToken;

$.post(
"/rpc-terminal",
postData,
@@ -57,12 +51,12 @@ block endOfBody
$("#output-" + t + " pre code").each(function(i, block) {
hljs.highlightBlock(block);
});

return false;
})
.done(function(data) {
});

return false;
});
});
});

0 comments on commit 6cb7a20

Please sign in to comment.
You can’t perform that action at this time.