Add message type description to spinner as meta_type.

This commit is contained in:
Cody Henthorne
2022-02-22 19:14:20 -05:00
committed by Greyson Parrelli
parent 88d2d4d9c7
commit 2de5ea43fb
3 changed files with 138 additions and 2 deletions

View File

@@ -31,7 +31,7 @@
{{#each queryResult.rows}}
<tr>
{{#each this}}
<td>{{this}}</td>
<td>{{{this}}}</td>
{{/each}}
</tr>
{{/each}}
@@ -49,6 +49,15 @@
const queryInput = document.querySelector('.query-input')
queryInput.value = sqlFormatter.format(queryInput.value).replaceAll("! =", "!=").replaceAll("| |", "||");
}
function submitOnEnter(event){
if (event.which === 13 && event.shiftKey) {
event.target.form.submit();
event.preventDefault();
}
}
document.querySelector('.query-input').addEventListener("keypress", submitOnEnter);
</script>
</body>
</html>