Add versions for http_functions, whenever script is updated a new version is logged.

This commit is contained in:
Peter Stockings
2024-04-06 19:49:46 +11:00
parent 4b30deb709
commit b4c67d8346
7 changed files with 37 additions and 24 deletions

View File

@@ -17,6 +17,10 @@
</path>
</svg>
<span class="bg-blue-500 text-white text-xs font-semibold px-2 py-1 rounded ml-2">
v{{ version_number }}
</span>
</div>
<script>
function toggleInput() {
@@ -305,12 +309,10 @@
})
.then(response => response.json())
.then(json => {
if ("{{ name }}" != name) {
htmx.ajax('GET', "{{ url_for('get_http_function_edit_form', function_id=function_id) }}", {
target: '#container',
swap: 'innerHTML'
});
}
htmx.ajax('GET', "{{ url_for('get_http_function_edit_form', function_id=function_id) }}", {
target: '#container',
swap: 'innerHTML'
});
showAlert(json.message, json.status)
})
})