Fix UI issue for success rate calculation (#14052)

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
Will Sun 2021-01-22 16:44:21 +08:00 committed by GitHub
parent dba229d0df
commit 51a541f1e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -390,7 +390,7 @@
</label> </label>
<input clrInput name="oidcScope" type="text" #oidcScopeInput="ngModel" <input clrInput name="oidcScope" type="text" #oidcScopeInput="ngModel"
[(ngModel)]="currentConfig.oidc_scope.value" id="oidcScope" size="40" required [(ngModel)]="currentConfig.oidc_scope.value" id="oidcScope" size="40" required
[disabled]="disabled(currentConfig.oidc_scope)" pattern="^(\w+,){0,}openid(,\w+){0,}$" /> [disabled]="disabled(currentConfig.oidc_scope)" pattern="^([\w.]+,){0,}openid(,[\w.]+){0,}$"/>
<clr-control-error>{{'TOOLTIP.SCOPE_REQUIRED' | translate}}</clr-control-error> <clr-control-error>{{'TOOLTIP.SCOPE_REQUIRED' | translate}}</clr-control-error>
</clr-input-container> </clr-input-container>
<clr-checkbox-container> <clr-checkbox-container>

View File

@ -76,7 +76,7 @@
<clr-dg-cell>{{j.start_time | date: 'short'}}</clr-dg-cell> <clr-dg-cell>{{j.start_time | date: 'short'}}</clr-dg-cell>
<clr-dg-cell>{{getDuration(j)}}</clr-dg-cell> <clr-dg-cell>{{getDuration(j)}}</clr-dg-cell>
<clr-dg-cell> <clr-dg-cell>
{{(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 }}
</clr-dg-cell> </clr-dg-cell>
<clr-dg-cell>{{j.total}}</clr-dg-cell> <clr-dg-cell>{{j.total}}</clr-dg-cell>
</clr-dg-row> </clr-dg-row>