From 16a3514abf7a9e6098c854c6e3da5cc9c6918031 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 14 Jan 2017 19:36:47 -0500 Subject: [PATCH] Cleanup auto-configure stuff --- resources/views/admin/nodes/view.blade.php | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/resources/views/admin/nodes/view.blade.php b/resources/views/admin/nodes/view.blade.php index c6befed5b..298f666e8 100644 --- a/resources/views/admin/nodes/view.blade.php +++ b/resources/views/admin/nodes/view.blade.php @@ -283,14 +283,11 @@
-
- Below is the configuration file for your daemon on this node. We recommend not simply copy and pasting the code below unless you know what you are doing. You should run the auto-installer or auto-updater to setup the daemon. +
+

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.

-
-

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.

-

- -

+
+

{{ $node->getConfigurationAsJson(true) }}
@@ -507,9 +504,8 @@ $(document).ready(function () { swal({ type: 'success', title: 'Token created.', - text: 'Here is your token: '+data.token+'
' + - 'It will expire at ' + data.expires_at + '

' + - '

To auto-configure your node run
npm run configure -- --panel-url '+window.location.protocol+'//{{ config('app.url') }} --token '+data.token+'

', + text: 'Your token will expire at ' + data.expires_at + '

' + + '

To auto-configure your node run

npm run configure -- --panel-url '+window.location.protocol+'//{{ config('app.url') }} --token '+data.token+'

', html: true }) })