Skip to content

Commit

Permalink
OD Explanation Loader Fix (#2381)
Browse files Browse the repository at this point in the history
* ckpt

* ternary condition fix

* auto lint fixes
  • Loading branch information
Advitya17 authored Oct 26, 2023
1 parent 3a5541d commit e4487bf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export class FlyoutObjectDetection extends React.Component<
+this.state.odSelectedKey.slice(
FlyoutODUtils.ExcessLabelLen
)
] ? (
] && (
<FluentUI.Stack.Item className={classNames.imageContainer}>
<FluentUI.Image
src={`data:image/jpg;base64,${this.props.explanations
Expand All @@ -212,13 +212,19 @@ export class FlyoutObjectDetection extends React.Component<
style={explanationImage}
/>
</FluentUI.Stack.Item>
) : (
<FluentUI.Stack.Item>
<FluentUI.Spinner
label={`${localization.InterpretVision.Dashboard.loading} ${item?.index}`}
/>
</FluentUI.Stack.Item>
)}
{this.state.odSelectedKey !== "" &&
this.props.loadingExplanation[item.index][
+this.state.odSelectedKey.slice(
FlyoutODUtils.ExcessLabelLen
)
] && (
<FluentUI.Stack.Item>
<FluentUI.Spinner
label={`${localization.InterpretVision.Dashboard.loading} ${item?.index}`}
/>
</FluentUI.Stack.Item>
)}
</FluentUI.Stack>
</FluentUI.Stack>
</FluentUI.Stack>
Expand Down
2 changes: 1 addition & 1 deletion libs/localization/src/lib/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,7 @@
"labelVisibilityDropdown": "Select labels to display",
"legendFailure": "failure",
"legendSuccess": "success",
"loading": "Computing explanation for index",
"loading": "Computing explanation for image of index",
"multiselect": "Multiselect",
"notdefined": "object scenario not defined",
"objectSelect": "Object Selection",
Expand Down

0 comments on commit e4487bf

Please sign in to comment.