Skip to content

Commit

Permalink
Merge pull request #725 from marcocen/view-secret
Browse files Browse the repository at this point in the history
Add Secret field on add-sensor view
  • Loading branch information
d1str0 authored Oct 16, 2019
2 parents df47c27 + 1bda577 commit f6293bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/mhn/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions server/mhn/templates/ui/add-sensor.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ <h2>Add a Sensor</h2>
<div class="row">
<div class="panel small-8 columns">
<h1><small id="sensor-id"></small></h1>
<h1><small id="sensor-secret"></small></h1>
</div>
</div>
</div>
Expand Down

0 comments on commit f6293bb

Please sign in to comment.