added DOM element for ARVE API authentication error
This commit is contained in:
parent
93f09508ac
commit
3ff35f849b
2 changed files with 5 additions and 3 deletions
|
|
@ -332,8 +332,9 @@ function show_sensors_data(url) {
|
|||
}
|
||||
},
|
||||
error: function(_, _, errorThrown) {
|
||||
if (errorThrown != 'Unauthorized') alert(errorThrown);
|
||||
else alert('Unauthorized - Something went wrong during the ARVE API authentication process.');
|
||||
$("#arve_api_error_message").val(errorThrown).show();
|
||||
$('#DIVsensors_data').hide();
|
||||
$('#arve_sensor_yes').prop('disabled', true)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<p id="offline_sensors" class="red_text mb-2" style="display: none">All sensors are offline.</p>
|
||||
<div id="DIVsensors_data" class="mb-1" style="display:none">
|
||||
<p id="arve_api_error_message" class="red_text mb-2" style="display:none; max-width: 85%;">Unauthorized - Something went wrong during the ARVE API authentication process.</p>
|
||||
<div id="DIVsensors_data" class="mb-1" style="display:none">
|
||||
<div class="form-group row mb-0">
|
||||
<div class="col-sm-4"><label class="col-form-label">Sensor:</label></div>
|
||||
<div class="col-sm-6">
|
||||
|
|
|
|||
Loading…
Reference in a new issue