1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00

feat(operations): job panel on the VM page

This commit is contained in:
catborise 2026-10-13 19:59:19 +03:00
parent 9c125aedd2
commit 9c7943a0c8
10 changed files with 469 additions and 13 deletions

View file

@ -64,6 +64,7 @@
<hr>
</div>
<div id="job-panel" aria-live="polite"></div>
<div id="mainTabMenu">
<!-- Nav tabs -->
<ul class="nav nav-pills nav-fill" id="navbtn" role="tablist" aria-label="Instance actions">
@ -681,6 +682,14 @@
return true;
});
</script>
<script src="{% static 'operations/job_panel.js' %}"></script>
<script>
jobPanel(document.getElementById("job-panel"), {
resource: "{% url 'operation-resource' %}?key=instance%3A{{ instance.uuid|urlencode }}",
job: function (id) { return "{% url 'operation-list' %}" + id + "/"; },
cancel: function (id) { return "{% url 'operation-list' %}" + id + "/cancel/"; },
}, "{{ csrf_token }}", {{ remembered_jobs|safe }});
</script>
<script src="{% static 'js/instance_tabs.js' %}"></script>
<script>
// Open the tab whose control targets "#<pane id>"