mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-26 02:28:06 +01:00
Fix UI issue for success rate calculation (#14052)
Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
dba229d0df
commit
51a541f1e2
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user