retard proof the restore button

This commit is contained in:
Elijahr2411 2023-02-23 16:36:55 -05:00
parent b4fbd6cb20
commit 48391c0723

View file

@ -801,7 +801,7 @@ buttons.ctrlAltDel.addEventListener('click', () => {
voteyesbtn.addEventListener('click', () => vm.voteReset(true)); voteyesbtn.addEventListener('click', () => vm.voteReset(true));
votenobtn.addEventListener('click', () => vm.voteReset(false)); votenobtn.addEventListener('click', () => vm.voteReset(false));
// Staff buttons // Staff buttons
buttons.restore.addEventListener('click', () => vm.admin.restore()); buttons.restore.addEventListener('click', () => {if (window.confirm("Do you really want to restore the VM?")) vm.admin.restore()});
buttons.reboot.addEventListener('click', () => vm.admin.reboot()); buttons.reboot.addEventListener('click', () => vm.admin.reboot());
buttons.clearQueue.addEventListener('click', () => vm.admin.clearQueue()); buttons.clearQueue.addEventListener('click', () => vm.admin.clearQueue());
buttons.bypassTurn.addEventListener('click', () => vm.admin.bypassTurn()); buttons.bypassTurn.addEventListener('click', () => vm.admin.bypassTurn());