adds fastly token to gui

This commit is contained in:
tomlum 2022-05-05 15:24:17 -04:00
parent 7bf3e20800
commit 063489b704
2 changed files with 5 additions and 1 deletions

View file

@ -359,6 +359,7 @@ const PreviewPresentation = ({
isFullScreen={isFullScreen}
previewInfoVisible="false"
projectHost={projectHost}
projectToken={projectInfo.project_token}
projectId={projectId}
onGreenFlag={onGreenFlag}
onProjectLoaded={onProjectLoaded}
@ -776,6 +777,7 @@ PreviewPresentation.propTypes = {
originalInfo: projectShape,
parentInfo: projectShape,
projectHost: PropTypes.string,
projectToken: PropTypes.string,
projectId: PropTypes.string,
projectInfo: projectShape,
projectStudios: PropTypes.arrayOf(PropTypes.object),

View file

@ -259,7 +259,7 @@ class Preview extends React.Component {
} else {
Object.assign(opts, {
method: 'put',
url: `${this.props.projectHost}/${projectId}${qs}`
url: `${this.props.projectHost}/${projectId}?test="awefjiaoewfjioeawjfiaeowf`
});
}
return new Promise((resolve, reject) => {
@ -849,6 +849,7 @@ class Preview extends React.Component {
hasCloudPermission={this.props.isScratcher}
isShared={this.props.isShared}
projectHost={this.props.projectHost}
projectToken={this.props.projectToken}
projectId={this.state.projectId}
projectTitle={this.props.projectInfo.title}
renderLogin={this.renderLogin}
@ -944,6 +945,7 @@ Preview.propTypes = {
parent: projectShape,
playerMode: PropTypes.bool,
projectHost: PropTypes.string.isRequired,
projectToken: PropTypes.string.isRequired,
projectInfo: projectShape,
projectNotAvailable: PropTypes.bool,
projectStudios: PropTypes.arrayOf(PropTypes.object),