Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
deleteVm -> deleteVmAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
elouanjef committed Jan 25, 2024
1 parent c4b7172 commit a286266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ <h1 class="text-left">Templates de VMs</h1>
<hr>

<script>
async function deleteVm(id) {
async function deleteVmAdmin(id) {
try {
var output = await checkIfVmAlive(id);
if (output == 1) {
Expand Down Expand Up @@ -196,7 +196,7 @@ <h1 class="text-left">Templates de VMs</h1>
$('<p>').addClass('card-text').text('User ID: ' + vm.users_id),
$('<p>').addClass('card-text').text('Date de création: ' + vm.creationDate),
$('<button>').addClass('btn btn-danger').text('Supprimer').on('click', function () {
deleteVm(vm.id);
deleteVmAdmin(vm.id);
})
);
return form;
Expand Down

0 comments on commit a286266

Please sign in to comment.