Compare commits

..

No commits in common. "995e959bb19e69f868269b1c62e26b90bb666043" and "efc8d9c564df66d17a252107358d0485322150f3" have entirely different histories.

2 changed files with 1 additions and 16 deletions

View File

@ -14,10 +14,6 @@
delete lease delete lease
</button> </button>
</div> </div>
<button type="button" class="btn btn-sm btn-outline-secondary" onclick="load()" title="refresh">
<i class="bi bi-arrow-clockwise"></i>
</button>
</div> </div>
</div> </div>

View File

@ -13,14 +13,10 @@
<button type="button" class="btn btn-sm btn-outline-danger" onclick="deleteOrigin().finally(() => load())"> <button type="button" class="btn btn-sm btn-outline-danger" onclick="deleteOrigin().finally(() => load())">
delete origin delete origin
</button> </button>
<button type="button" class="btn btn-sm btn-outline-danger" onclick="deleteOriginsWrapper()"> <button type="button" class="btn btn-sm btn-outline-danger" onclick="deleteOrigins().finally(() => load())">
delete all delete all
</button> </button>
</div> </div>
<button type="button" class="btn btn-sm btn-outline-secondary" onclick="load()" title="refresh">
<i class="bi bi-arrow-clockwise"></i>
</button>
</div> </div>
</div> </div>
@ -37,12 +33,5 @@
} }
load() load()
function deleteOriginsWrapper() {
const response = confirm('Are you sure you want to delete all origins and their leases?');
if (response)
deleteOrigins().finally(() => load())
}
</script> </script>
{% endblock %} {% endblock %}