fix(service-management): update service stop and restart messages for improved clarity and formatting
This commit is contained in:
parent
a990cc01c2
commit
393d6f7669
1 changed files with 4 additions and 2 deletions
|
|
@ -135,7 +135,8 @@
|
||||||
@script
|
@script
|
||||||
<script>
|
<script>
|
||||||
$wire.$on('stopEvent', () => {
|
$wire.$on('stopEvent', () => {
|
||||||
$wire.$dispatch('info', 'Gracefully stopping service, it could take a while depending on the service.');
|
$wire.$dispatch('info',
|
||||||
|
'Gracefully stopping service.<br>It could take a while depending on the service.');
|
||||||
$wire.$call('stop');
|
$wire.$call('stop');
|
||||||
});
|
});
|
||||||
$wire.$on('startEvent', async () => {
|
$wire.$on('startEvent', async () => {
|
||||||
|
|
@ -161,7 +162,8 @@
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$wire.$dispatch('info', 'Service restart in progress.');
|
$wire.$dispatch('info',
|
||||||
|
'Gracefully stopping service.<br/>It could take a while depending on the service.');
|
||||||
window.dispatchEvent(new CustomEvent('startservice'));
|
window.dispatchEvent(new CustomEvent('startservice'));
|
||||||
$wire.$call('restart');
|
$wire.$call('restart');
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue