Add js function to show alerts when updating http functions
This commit is contained in:
@@ -190,10 +190,9 @@
|
||||
},
|
||||
body: JSON.stringify({ name, script_content, environment_info }),
|
||||
})
|
||||
.then(response => response.text())
|
||||
.then(text => {
|
||||
document.querySelector('#container').innerHTML = text
|
||||
htmx.process(htmx.find('#container'))
|
||||
.then(response => response.json())
|
||||
.then(json => {
|
||||
showAlert(json.message, json.status)
|
||||
})
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user