fix: confirm restart service

This commit is contained in:
Andras Bacsai 2022-11-07 13:35:45 +01:00
parent 7ce3ebde4e
commit 816a362534
2 changed files with 6 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -100,8 +100,11 @@
} }
} }
async function restartService() { async function restartService() {
await stopService(); const sure = confirm('Are you sure you want to restart this service?');
await startService(); if (sure) {
await stopService();
await startService();
}
} }
async function refreshTemplate() { async function refreshTemplate() {
try { try {