mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 05:16:48 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
376b1e5c36
commit
b16e0553cf
1 changed files with 5 additions and 6 deletions
|
|
@ -88,12 +88,11 @@ function CronjobDetailPage() {
|
|||
|
||||
async function remove() {
|
||||
try {
|
||||
await deleteMut.mutateAsync(job!.id);
|
||||
toast.success("Excluída.");
|
||||
|
||||
const { error: syncError } = await syncAgentRuntime(job!.agent_instance_id, "cronjobs");
|
||||
if (syncError) {
|
||||
toast.warning("Automação removida, mas o runtime do agente não sincronizou.");
|
||||
const result = await deleteMut.mutateAsync(job!.id);
|
||||
if (result.runtime_sync_warning) {
|
||||
toast.warning("Excluída do painel; limpeza final do runtime pendente.");
|
||||
} else {
|
||||
toast.success("Excluída.");
|
||||
}
|
||||
|
||||
navigate({ to: "/painel/cronjobs" });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue