From 1bda577c068de24954c803cb344f73dcb7f849ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Centuri=C3=B3n?= Date: Mon, 14 Oct 2019 17:23:12 -0300 Subject: [PATCH] Add Secret field on add-sensor view --- server/mhn/static/js/main.js | 1 + server/mhn/templates/ui/add-sensor.html | 1 + 2 files changed, 2 insertions(+) diff --git a/server/mhn/static/js/main.js b/server/mhn/static/js/main.js index 0ce73376..b2bc2fbd 100644 --- a/server/mhn/static/js/main.js +++ b/server/mhn/static/js/main.js @@ -33,6 +33,7 @@ $(document).ready(function() { success: function(resp) { $('#sensor-info').show(); $('#sensor-id').html('UUID: ' + resp.uuid); + $('#sensor-secret').html('Secret: ' + resp.secret); }, contentType: 'application/json', error: function(resp) { diff --git a/server/mhn/templates/ui/add-sensor.html b/server/mhn/templates/ui/add-sensor.html index f7dedf43..58e71027 100644 --- a/server/mhn/templates/ui/add-sensor.html +++ b/server/mhn/templates/ui/add-sensor.html @@ -45,6 +45,7 @@

Add a Sensor

+