Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OD Explanation Loader Fix #2381

Merged
merged 7 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,21 @@ 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