mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-17 12:16:11 +00:00
refactor: simplify service start and restart workflows
This commit is contained in:
1 parent
8b8ae17c1a
commit
d632eb2be9
4 files changed
+16
-47
No files matched your search
@@ -165,10 +165,12 @@
|
||||
return;
|
||||
}
|
||||
$wire.$dispatch('info', 'Service restart in progress.');
|
||||
window.dispatchEvent(new CustomEvent('startservice'));
|
||||
$wire.$call('restart');
|
||||
});
|
||||
$wire.$on('pullAndRestartEvent', () => {
|
||||
$wire.$dispatch('info', 'Pulling new images.');
|
||||
$wire.$dispatch('info', 'Pulling new images and restarting service.');
|
||||
window.dispatchEvent(new CustomEvent('startservice'));
|
||||
$wire.$call('pullAndRestartEvent');
|
||||
});
|
||||
$wire.on('imagePulled', () => {
|
||||
|
||||
Reference in new issue
Block a user