Git-Status: success-Property entfernt, Tooltips mit Datei-Info an Dashboard-Badges

This commit is contained in:
Meleki committed 2026-02-28 23:34:08 +01:00
1 parent ac150af4c5
commit 6b7df138de
2 files changed
+24 -10

No files matched your search

+5 -5
View File
@@ -285,7 +285,7 @@ public static class SessionEndpoint
if (string.IsNullOrEmpty(workingDir))
{
ctx.Response.StatusCode = 400;
await ctx.Response.WriteAsJsonAsync(new { success = false, error = "Kein Workspace konfiguriert" });
await ctx.Response.WriteAsJsonAsync(new { error = "Kein Workspace konfiguriert" });
return;
}
@@ -306,7 +306,7 @@ public static class SessionEndpoint
if (proc == null)
{
ctx.Response.StatusCode = 500;
await ctx.Response.WriteAsJsonAsync(new { success = false, error = "Git-Prozess konnte nicht gestartet werden" });
await ctx.Response.WriteAsJsonAsync(new { error = "Git-Prozess konnte nicht gestartet werden" });
return;
}
@@ -317,7 +317,7 @@ public static class SessionEndpoint
if (proc.ExitCode != 0)
{
ctx.Response.StatusCode = 500;
await ctx.Response.WriteAsJsonAsync(new { success = false, error = stderr.Trim() });
await ctx.Response.WriteAsJsonAsync(new { error = stderr.Trim() });
return;
}
@@ -386,12 +386,12 @@ public static class SessionEndpoint
// Kein Remote oder kein Upstream – outgoing bleibt 0
}
await ctx.Response.WriteAsJsonAsync(new { success = true, add, edit, delete, outgoing });
await ctx.Response.WriteAsJsonAsync(new { add, edit, delete, outgoing });
}
catch (Exception ex)
{
ctx.Response.StatusCode = 500;
await ctx.Response.WriteAsJsonAsync(new { success = false, error = ex.Message });
await ctx.Response.WriteAsJsonAsync(new { error = ex.Message });
}
}
}