mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
Misc frontend fixes (#2974)
* fix dependency input warning and extra comma * clean up buttons during install in marketplace preview * chore: grayscale and closing action-bar * fix prerelease precedence * fix duplicate url for addSsl on ssl proto * no warning for soft uninstall * fix: stop logs from repeating disconnected status and add 1 second delay between reconnection attempts * fix stop on reactivation of critical task * fix: fix disconnected toast * fix: updates styles * fix: updates styles * misc fixes * beta.33 * fix updates badge and initialization of marketplace preview controls --------- Co-authored-by: waterplea <alexander@inkin.ru> Co-authored-by: Aiden McClelland <me@drbonez.dev>
This commit is contained in:
@@ -176,29 +176,44 @@ impl Handler<RunAction> for ServiceActor {
|
||||
)
|
||||
.await
|
||||
.with_kind(ErrorKind::Action)?;
|
||||
if self
|
||||
let package_id = package_id.clone();
|
||||
for to_stop in self
|
||||
.0
|
||||
.ctx
|
||||
.db
|
||||
.mutate(|db| {
|
||||
let mut critical_activated = false;
|
||||
for (_, pde) in db.as_public_mut().as_package_data_mut().as_entries_mut()? {
|
||||
critical_activated |= pde.as_tasks_mut().mutate(|tasks| {
|
||||
Ok(update_tasks(tasks, package_id, action_id, &input, true))
|
||||
})?;
|
||||
let mut to_stop = Vec::new();
|
||||
for (id, pde) in db.as_public_mut().as_package_data_mut().as_entries_mut()? {
|
||||
if pde.as_tasks_mut().mutate(|tasks| {
|
||||
Ok(update_tasks(tasks, &package_id, action_id, &input, true))
|
||||
})? {
|
||||
to_stop.push(id)
|
||||
}
|
||||
}
|
||||
Ok(critical_activated)
|
||||
Ok(to_stop)
|
||||
})
|
||||
.await
|
||||
.result?
|
||||
{
|
||||
<Self as Handler<super::control::Stop>>::handle(
|
||||
self,
|
||||
id,
|
||||
super::control::Stop { wait: false },
|
||||
jobs,
|
||||
)
|
||||
.await;
|
||||
if to_stop == package_id {
|
||||
<Self as Handler<super::control::Stop>>::handle(
|
||||
self,
|
||||
id.clone(),
|
||||
super::control::Stop { wait: false },
|
||||
jobs,
|
||||
)
|
||||
.await;
|
||||
} else {
|
||||
self.0
|
||||
.ctx
|
||||
.services
|
||||
.get(&to_stop)
|
||||
.await
|
||||
.as_ref()
|
||||
.or_not_found(&to_stop)?
|
||||
.stop(id.clone(), false)
|
||||
.await?;
|
||||
}
|
||||
}
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user