From cbf350a898f745d52ca76d1d01306886892c2714 Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Mon, 17 Aug 2026 22:02:16 +0200 Subject: [PATCH] NC Connector: show API and fallback failures in admin status --- template/nc_connector_admin.tpl | 45 ++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/template/nc_connector_admin.tpl b/template/nc_connector_admin.tpl index a3d3d84..8ed3b98 100644 --- a/template/nc_connector_admin.tpl +++ b/template/nc_connector_admin.tpl @@ -18,6 +18,17 @@ {if $nc_system_available && $NC_CONNECTOR.system.last_run_message}

Letztes Ergebnis: {$NC_CONNECTOR.system.last_run_message|escape:html}

{/if} + {if $nc_system_available && $NC_CONNECTOR.system.last_run_api_state == 'error'} +

API: {$NC_CONNECTOR.system.last_run_api_message|escape:html}

+ {/if} + {if $nc_system_available && $NC_CONNECTOR.system.last_run_fallback_state == 'ok'} +

Fallback: erfolgreich übernommen.

+ {elseif $nc_system_available && $NC_CONNECTOR.system.last_run_fallback_state == 'error'} +

Fallback: {$NC_CONNECTOR.system.last_run_fallback_message|escape:html}

+ {/if} + {if $nc_system_available && $NC_CONNECTOR.system.last_run_error_detail} +

Fehler: {$NC_CONNECTOR.system.last_run_error_detail|escape:html}

+ {/if}
@@ -194,6 +205,27 @@ {/if} + {if isset($connection.last_sync) && $connection.last_sync.timestamp > 0} + + + Letzter Sync · {$connection.last_sync.label|escape:html} +

Ergebnis: {$connection.last_sync.message|escape:html}

+ {if $connection.last_sync.api_state == 'ok'} +

API: erfolgreich

+ {elseif $connection.last_sync.api_state == 'error'} +

API fehlgeschlagen: {$connection.last_sync.api_message|escape:html}

+ {/if} + {if $connection.last_sync.fallback_state == 'ok'} +

Fallback: erfolgreich

+ {elseif $connection.last_sync.fallback_state == 'error'} +

Fallback fehlgeschlagen: {$connection.last_sync.fallback_message|escape:html}

+ {/if} + {if $connection.last_sync.error_detail} +

Technischer Fehler: {$connection.last_sync.error_detail|escape:html}

+ {/if} + + + {/if} {/foreach} @@ -210,7 +242,18 @@ Nächster Lauf{if $nc_system_available}{$NC_CONNECTOR.system.next_run_label|escape:html}{else}Nicht verfügbar{/if}
{if $nc_system_available && $NC_CONNECTOR.system.last_run_message} -

{$NC_CONNECTOR.system.last_run_message|escape:html}

+

Ergebnis: {$NC_CONNECTOR.system.last_run_message|escape:html}

+ {/if} + {if $nc_system_available && $NC_CONNECTOR.system.last_run_api_state == 'error'} +

API fehlgeschlagen: {$NC_CONNECTOR.system.last_run_api_message|escape:html}

+ {/if} + {if $nc_system_available && $NC_CONNECTOR.system.last_run_fallback_state == 'ok'} +

Fallback: erfolgreich

+ {elseif $nc_system_available && $NC_CONNECTOR.system.last_run_fallback_state == 'error'} +

Fallback fehlgeschlagen: {$NC_CONNECTOR.system.last_run_fallback_message|escape:html}

+ {/if} + {if $nc_system_available && $NC_CONNECTOR.system.last_run_error_detail} +

Technischer Fehler: {$NC_CONNECTOR.system.last_run_error_detail|escape:html}

{/if}