From 51a541f1e255b716226d28dcd691c65a917c25df Mon Sep 17 00:00:00 2001 From: Will Sun <30999793+AllForNothing@users.noreply.github.com> Date: Fri, 22 Jan 2021 16:44:21 +0800 Subject: [PATCH] Fix UI issue for success rate calculation (#14052) Signed-off-by: AllForNothing --- src/portal/src/app/config/auth/config-auth.component.html | 2 +- .../src/lib/components/replication/replication.component.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/portal/src/app/config/auth/config-auth.component.html b/src/portal/src/app/config/auth/config-auth.component.html index 4db4c82f7..126af42e1 100644 --- a/src/portal/src/app/config/auth/config-auth.component.html +++ b/src/portal/src/app/config/auth/config-auth.component.html @@ -390,7 +390,7 @@ + [disabled]="disabled(currentConfig.oidc_scope)" pattern="^([\w.]+,){0,}openid(,[\w.]+){0,}$"/> {{'TOOLTIP.SCOPE_REQUIRED' | translate}} diff --git a/src/portal/src/lib/components/replication/replication.component.html b/src/portal/src/lib/components/replication/replication.component.html index 88fccf72e..5f58b7625 100644 --- a/src/portal/src/lib/components/replication/replication.component.html +++ b/src/portal/src/lib/components/replication/replication.component.html @@ -76,7 +76,7 @@ {{j.start_time | date: 'short'}} {{getDuration(j)}} - {{(j.status === 'InProgress'? (j.total > 0 ? j.succeed / j.total : 0): j.total > 0 ? j.succeed / j.total : 1)| percent }} + {{((j.status === 'InProgress' || j.status === 'Failed')? (j.total > 0 ? j.succeed / j.total : 0): j.total > 0 ? j.succeed / j.total : 1)| percent }} {{j.total}}