fix(service-management): update service stop and restart messages for improved clarity and formatting

This commit is contained in:
Andras Bacsai
2025-05-30 13:35:09 +02:00
parent a990cc01c2
commit 393d6f7669

View File

@@ -135,7 +135,8 @@
@script
<script>
$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.$on('startEvent', async () => {
@@ -161,7 +162,8 @@
);
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'));
$wire.$call('restart');
});