Skip to content

Commit

Permalink
fix of bugs : success box not appearing and no padding in box
Browse files Browse the repository at this point in the history
  • Loading branch information
nishogi committed Jun 2, 2024
1 parent 715a88d commit 7fbf842
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions website/students/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ function confirmStartVM(name) {
icon: 'success',
timer: 2000
}).then(() => {
location.reload();
setTimeout(() => {
location.reload();
}, 2000);
});
}
}
Expand Down Expand Up @@ -101,7 +103,9 @@ function confirmStopVM(name) {
icon: 'success',
timer: 2000
}).then(() => {
location.reload();
setTimeout(() => {
location.reload();
}, 2000);
});
}
}
Expand All @@ -115,15 +119,14 @@ function confirmStopVM(name) {
function confirmCreateVM(vmName) {
Swal.fire({
title: 'Clé SSH',
padding: '1rem 1rem 1rem 1rem'
input: 'textarea',
inputLabel: 'Veuillez nous transmettre votre clé ssh publique afin qu\'on puisse vous transmettre vos identifiants :',
inputPlaceholder: 'Entrez votre clé ssh publique ici...',
inputAttributes: {
'aria-label': 'Entrez votre clé ssh publique ici',
style: 'padding: 1rem;'
'aria-label': 'Entrez votre clé ssh publique ici'
},
showCancelButton: true,
padding: '1rem'
}).then((result) => {
if (result.isConfirmed && result.value) {
var sshPublicKey = result.value;
Expand Down Expand Up @@ -157,7 +160,9 @@ function confirmCreateVM(vmName) {
icon: 'success',
timer: 2000
}).then(() => {
location.reload();
setTimeout(() => {
location.reload();
}, 2000);
});
}
}
Expand Down

0 comments on commit 7fbf842

Please sign in to comment.