fix: confirm restart service
This commit is contained in:
@@ -100,8 +100,11 @@
|
||||
}
|
||||
}
|
||||
async function restartService() {
|
||||
await stopService();
|
||||
await startService();
|
||||
const sure = confirm('Are you sure you want to restart this service?');
|
||||
if (sure) {
|
||||
await stopService();
|
||||
await startService();
|
||||
}
|
||||
}
|
||||
async function refreshTemplate() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user