Skip to content

Commit

Permalink
add action to message
Browse files Browse the repository at this point in the history
  • Loading branch information
thewahome committed Jun 8, 2020
1 parent ce27852 commit 55712f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/views/query-runner/QueryRunner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class QueryRunner extends Component<

private handleOnRunQuery = () => {
const { sampleBody } = this.state;
const { actions, sampleQuery, } = this.props;
const { actions, sampleQuery, } = this.props;
const { intl: { messages } }: any = this.props;

if (sampleBody) {
Expand All @@ -78,7 +78,7 @@ export class QueryRunner extends Component<
actions!.setQueryResponseStatus({
ok: false,
statusText: messages['Malformed JSON body'],
status: error,
status: `${messages['Review the request body']} ${error}`,
messageType: MessageBarType.error
});
return;
Expand Down
7 changes: 4 additions & 3 deletions src/messages/GE.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@
"Consent": "Consent",
"permissions required to run the query": "The following permissions are required to run the query. To consent to the permissions, click Consent.",
"tab": " tab",
"View the":" View the",
"View the": " View the",
"viewing a cached set": "You are viewing a cached set of samples because of a network connection failure.",
"see more queries":"See more queries in the",
"see more queries": "See more queries in the",
"Microsoft Graph API Reference docs": "Microsoft Graph API Reference docs.",
"Fetching permissions": "Fetching permissions",
"Authentication failed": "Authentication failed",
Expand All @@ -305,5 +305,6 @@
"selected": "selected",
"Search sample queries": "Search sample queries",
"Search history items": "Search history items",
"Malformed JSON body": "Malformed JSON body"
"Malformed JSON body": "Malformed JSON body",
"Review the request body": "Review the request body and fix any malformed JSON."
}

0 comments on commit 55712f2

Please sign in to comment.