From ed6e3f215408b9a40fc3a01e6f86722dfb8624e8 Mon Sep 17 00:00:00 2001 From: mpetrov Date: Fri, 15 Nov 2024 12:19:49 +0200 Subject: [PATCH] Added static time on debugAll=true --- .../debug-config/debug-config-button.component.html | 4 +++- .../components/debug-config/debug-config-panel.component.html | 4 ++-- .../components/debug-config/debug-config-panel.component.ts | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/debug-config/debug-config-button.component.html b/ui-ngx/src/app/modules/home/components/debug-config/debug-config-button.component.html index d0905d968d..bdaf2de487 100644 --- a/ui-ngx/src/app/modules/home/components/debug-config/debug-config-button.component.html +++ b/ui-ngx/src/app/modules/home/components/debug-config/debug-config-button.component.html @@ -26,7 +26,9 @@ bug_report common.disabled debug-config.all - {{ debugAllUntil | durationLeft }} + + {{ !debugAll ? (debugAllUntil | durationLeft) : ('debug-config.min' | translate: { number: maxDebugModeDurationMinutes }) }} + debug-config.failures diff --git a/ui-ngx/src/app/modules/home/components/debug-config/debug-config-panel.component.html b/ui-ngx/src/app/modules/home/components/debug-config/debug-config-panel.component.html index 2e3eb94648..379ad579eb 100644 --- a/ui-ngx/src/app/modules/home/components/debug-config/debug-config-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/debug-config/debug-config-panel.component.html @@ -34,10 +34,10 @@
- {{ 'debug-config.all-messages' | translate: { time: (isDebugAllActive$ | async) ? (debugAllUntil | durationLeft) : ('debug-config.min' | translate: { number: maxDebugModeDurationMinutes }) } }} + {{ 'debug-config.all-messages' | translate: { time: (isDebugAllActive$ | async) && !debugAll ? (debugAllUntil | durationLeft) : ('debug-config.min' | translate: { number: maxDebugModeDurationMinutes }) } }}
-