Skip to content

Commit

Permalink
Internationalize some strings, address pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kqualters-elastic committed Mar 18, 2020
1 parent ef7b568 commit bcf1035
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,22 @@ export const AlertDetailsOverview = styled(
</EuiText>
<EuiSpacer />
<EuiText>
Endpoint Status: <EuiHealth color="success">Online</EuiHealth>
Endpoint Status:{' '}
<EuiHealth color="success">
{' '}
<FormattedMessage
id="xpack.endpoint.application.endpoint.alertDetails.endpoint.status.online"
defaultMessage="Online"
/>
</EuiHealth>
</EuiText>
<EuiText>
{' '}
<FormattedMessage
id="xpack.endpoint.application.endpoint.alertDetails.alert.status.open"
defaultMessage="Alert Status: Open"
/>
</EuiText>
<EuiText>Alert Status: Open</EuiText>
<EuiSpacer />
<TakeActionDropdown />
<EuiSpacer />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface UserChangedSelectedEvent {
/**
* Optional because they could have unselected the event.
*/
selectedEvent?: ResolverEvent;
readonly selectedEvent?: ResolverEvent;
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export const resolverMiddlewareFactory: MiddlewareFactory = context => {
return api => next => async (action: ResolverAction) => {
next(action);
if (action.type === 'userChangedSelectedEvent') {
/**
* concurrently fetches a process's details, its ancestors, and its related events.
*/
if (context?.services.http && action.payload.selectedEvent) {
api.dispatch({ type: 'appRequestedResolverData' });
let response = [];
Expand Down
3 changes: 3 additions & 0 deletions x-pack/plugins/endpoint/public/embeddables/resolver/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ export interface SideEffectSimulator {
mock: jest.Mocked<Omit<SideEffectors, 'ResizeObserver'>> & Pick<SideEffectors, 'ResizeObserver'>;
}

/**
* The internal types of process events used by resolver, mapped from v0 and v1 events.
*/
export type ResolverProcessType =
| 'processCreated'
| 'processRan'
Expand Down

0 comments on commit bcf1035

Please sign in to comment.