mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
fix: please wait dialog.
This commit is contained in:
parent
c1488eee52
commit
4d21a3184b
4 changed files with 13 additions and 7 deletions
|
|
@ -11,6 +11,7 @@
|
|||
{% block page_heading_extra %}{% include 'create_stg_vol_block.html' %}{% endblock page_heading_extra %}
|
||||
|
||||
{% block content %}
|
||||
{% include 'pleasewaitdialog.html' %}
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
|
||||
|
|
@ -152,7 +153,7 @@
|
|||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{% trans "Close" %}</button>
|
||||
<button type="submit" class="btn btn-primary" name="cln_volume" onclick="showPleaseWaitDialog();">{% trans "Clone" %}</button>
|
||||
<button type="submit" class="btn btn-primary" name="cln_volume" onclick="showPleaseWaitDialog()">{% trans "Clone" %}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div> <!-- /.modal-content -->
|
||||
|
|
@ -190,7 +191,6 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% include 'pleasewaitdialog.html' %}
|
||||
{% endblock %}
|
||||
{% block script %}
|
||||
<script src="{% static 'js/sortable.min.js' %}"></script>
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ def storage(request, compute_id, pool):
|
|||
name = conn.clone_volume(data["image"], data["name"], format, meta_prealloc)
|
||||
messages.success(
|
||||
request,
|
||||
_("%(image)s image cloned as %(clone)s successfully") % {"image": data["image"], "name": name},
|
||||
_("%(image)s image cloned as %(name)s successfully") % {"image": data["image"], "name": name},
|
||||
)
|
||||
return HttpResponseRedirect(request.get_full_path())
|
||||
except libvirtError as lib_err:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue