1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

added 401 unauthorized function to hyperglass.js

This commit is contained in:
checktheroads
2019-06-11 14:31:40 -07:00
parent 8f8641da17
commit df5d7b055e

View File

@@ -175,6 +175,21 @@ function submitForm() {
progress.hide();
$('#output').html(`<br><div class="content"><p class="query-output" id="output">${response}</p></div>`);
},
401: function(response, code) {
clearPage();
target_error.show()
target_input.addClass('is-danger');
target_error.html(`
<br>
<article class="message is-danger is-small" style="display: block;">
<div class="message-header" style="display: block;">
Authentication Error
</div>
<div id="error" style="display: block;" class="message-body">
${response.responseText}
</div>
</article>
`);
405: function(response, code) {
clearPage();
target_error.show()