mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-29 16:20:47 +00:00
tons of updates
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
export function getStatusOfService(service: any) {
|
||||
if (service) {
|
||||
if (service.status.isRunning === 'running') {
|
||||
return 'running';
|
||||
}
|
||||
if (service.status.isExited === 'exited') {
|
||||
return 'stopped';
|
||||
}
|
||||
if (service.status.isRestarting === 'degraded') {
|
||||
return 'degraded';
|
||||
}
|
||||
}
|
||||
|
||||
return 'stopped';
|
||||
}
|
||||
Reference in New Issue
Block a user