secret_repository_tab

dev_cs
hjm 6 years ago
parent c9582775ed
commit 1e888ae359

@ -79,7 +79,7 @@ class TPMRepositoryComponent extends Component {
let url = `/shixuns/${id}/file_content.json`; let url = `/shixuns/${id}/file_content.json`;
axios.post(url, { axios.post(url, {
path: path, path: path,
secret_repository: this.props.secret_repository secret_repository: this.props.secret_repository_tab
}).then((response) => { }).then((response) => {
trace_collapse('repository res: ', response) trace_collapse('repository res: ', response)

@ -121,7 +121,7 @@ class RepositoryCodeEditor extends Component {
const path = pathArray.join('/') const path = pathArray.join('/')
this.setState({ codeSaving: true }) this.setState({ codeSaving: true })
axios.post(url, { axios.post(url, {
secret_repository: this.props.secret_repository, secret_repository: this.props.secret_repository_tab,
content: this.extend_editor.getValue(), content: this.extend_editor.getValue(),
// type: forTest === true ? 1 : 0, // type: forTest === true ? 1 : 0,
path: path path: path

@ -34,7 +34,9 @@ class TPMRepositoryCommits extends Component {
let id = this.props.match.params.shixunId; let id = this.props.match.params.shixunId;
let collaborators=`/shixuns/`+id+`/commits.json`; let collaborators=`/shixuns/`+id+`/commits.json`;
axios.post(collaborators).then((response)=> { axios.post(collaborators, {
secret_repository: this.props.secret_repository_tab
}).then((response)=> {
if(response.status===200){ if(response.status===200){
this.setState({ this.setState({

Loading…
Cancel
Save