Skip to content

Commit 16a3514

Browse files
committed
Cleanup auto-configure stuff
1 parent af2644c commit 16a3514

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

resources/views/admin/nodes/view.blade.php

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -283,14 +283,11 @@
283283
<div class="panel panel-default">
284284
<div class="panel-heading"></div>
285285
<div class="panel-body">
286-
<div class="alert alert-info">
287-
Below is the configuration file for your daemon on this node. We recommend <strong>not</strong> simply copy and pasting the code below unless you know what you are doing. You should run the <code>auto-installer</code> or <code>auto-updater</code> to setup the daemon.
286+
<div class="col-md-8">
287+
<p class="text-muted small">To simplify the configuration of nodes it is possible to fetch the config from the panel. A token is required for this process. The button below will generate a token and provide you with the commands necessary for automatic configuration of the node. Be aware that these tokens are only valid for 5 minutes.</p>
288288
</div>
289-
<div class="col-md-12">
290-
<p>To simplify the configuration of nodes it is possible to fetch the config from the panel. A token is required for this process. The button below will generate a token and provide you with the commands necessary for automatic configuration of the node. Be aware that these tokens are only valid for 5 minutes.</p>
291-
<p class="text-center">
292-
<button type="button" id="configTokenBtn" class="btn btn-primary">Generate token</button>
293-
</p>
289+
<div class="col-md-4 text-center">
290+
<p><button type="button" id="configTokenBtn" class="btn btn-sm btn-primary" style="width:100%;">Generate Token</button></p>
294291
</div>
295292
<div class="col-md-12">
296293
<pre><code>{{ $node->getConfigurationAsJson(true) }}</code></pre>
@@ -507,9 +504,8 @@
507504
swal({
508505
type: 'success',
509506
title: 'Token created.',
510-
text: 'Here is your token: <code>'+data.token+'</code><br />' +
511-
'It will expire at <i>' + data.expires_at + '</i><br /><br />' +
512-
'<p>To auto-configure your node run<br /><small><code>npm run configure -- --panel-url '+window.location.protocol+'//{{ config('app.url') }} --token '+data.token+'</code></small></p>',
507+
text: 'Your token will expire at ' + data.expires_at + '<br /><br />' +
508+
'<p>To auto-configure your node run<br /><small><pre>npm run configure -- --panel-url '+window.location.protocol+'//{{ config('app.url') }} --token '+data.token+'</pre></small></p>',
513509
html: true
514510
})
515511
})

0 commit comments

Comments
 (0)