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

Passed missing props from the Middlware #912

Merged
merged 3 commits into from
Jan 27, 2019
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -62,7 +62,7 @@ export interface Props {
subscriptionEndpoint?: string
projectId?: string
shareEnabled?: boolean
adminAuthToken?: string
fixedEndpoint?: boolean
onSuccess?: (graphQLParams: any, response: any) => void
isEndpoint?: boolean
isApp?: boolean
Expand Down Expand Up @@ -294,6 +294,7 @@ export class Playground extends React.PureComponent<Props & ReduxProps, State> {
) : (
<GraphQLEditor
shareEnabled={this.props.shareEnabled}
fixedEndpoint={this.props.fixedEndpoint}
schema={this.state.schema}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ import { ResponseRecord } from '../../state/sessions/reducers'
export interface Props {
onRef?: any
shareEnabled?: boolean
fixedEndpoint?: boolean
schema?: GraphQLSchema
}

Expand Down Expand Up @@ -167,7 +168,10 @@ class GraphQLEditor extends React.PureComponent<Props & ReduxProps> {
return (
<Container>
<EditorWrapper>
<TopBar shareEnabled={this.props.shareEnabled} />
<TopBar
shareEnabled={this.props.shareEnabled}
fixedEndpoint={this.props.fixedEndpoint}
/>
<EditorBar
ref={this.setEditorBarComponent}
onMouseDown={this.handleResizeStart}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export interface PlaygroundWrapperProps {
subscriptionEndpoint?: string
setTitle?: boolean
settings?: ISettings
shareEnabled?: string
fixedEndpoint?: string
folderName?: string
configString?: string
showNewWorkspace?: boolean
Expand Down Expand Up @@ -373,6 +375,7 @@ class PlaygroundWrapper extends React.Component<
)}
<Playground
endpoint={this.state.endpoint}
shareEnabled={this.props.shareEnabled}
subscriptionEndpoint={this.state.subscriptionEndpoint}
shareUrl={this.state.shareUrl}
onChangeEndpoint={this.handleChangeEndpoint}
Expand All @@ -389,6 +392,7 @@ class PlaygroundWrapper extends React.Component<
onSaveConfig={this.handleSaveConfig}
onUpdateSessionCount={this.handleUpdateSessionCount}
fixedEndpoints={Boolean(this.state.configString)}
fixedEndpoint={this.props.fixedEndpoint}
headers={combinedHeaders}
configPath={this.props.configPath}
workspaceName={
Expand Down