fix: confirm restart service
This commit is contained in:
parent
7ce3ebde4e
commit
816a362534
File diff suppressed because one or more lines are too long
@ -100,9 +100,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function restartService() {
|
async function restartService() {
|
||||||
|
const sure = confirm('Are you sure you want to restart this service?');
|
||||||
|
if (sure) {
|
||||||
await stopService();
|
await stopService();
|
||||||
await startService();
|
await startService();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
async function refreshTemplate() {
|
async function refreshTemplate() {
|
||||||
try {
|
try {
|
||||||
loading.refreshTemplates = true;
|
loading.refreshTemplates = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user