Commit ec302c6c authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Repove tempToken and tempPrivateToken from repo code

parent 1c76a0c8
......@@ -96,15 +96,12 @@ const Api = {
.done(projects => callback(projects));
},
commitMultiple(id, data, callback, token) {
commitMultiple(id, data, callback) {
// see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions
const url = Api.buildUrl(Api.commitPath)
.replace(':id', id);
return $.ajax({
url,
headers: {
PRIVATE_TOKEN: token,
},
type: 'POST',
contentType: 'application/json; charset=utf-8',
data: JSON.stringify(data),
......
......@@ -17,13 +17,12 @@ function initRepo() {
Store.service = Service;
Store.service.url = repo.dataset.url;
Store.projectName = repo.dataset.projectName;
Store.service.refsUrl = repo.dataset.refsUrl;
Store.currentBranch = $('button.dropdown-menu-toggle').attr('data-ref');
Store.checkIsCommitable();
Store.projectId = repo.dataset.projectId;
Store.tempPrivateToken = repo.dataset.tempToken;
Store.projectName = repo.dataset.projectName;
Store.projectUrl = repo.dataset.projectUrl;
Store.currentBranch = $('button.dropdown-menu-toggle').attr('data-ref');
Store.checkIsCommitable();
this.vm = new Vue({
el: repo,
......
......@@ -33,7 +33,7 @@ const RepoCommitSection = {
this.commitMessage = '';
this.editMode = false;
$('html, body').animate({ scrollTop: 0 }, 'fast');
}, Store.tempPrivateToken);
});
},
},
......
......@@ -26,7 +26,6 @@ const RepoStore = {
defaultTabSize: 100,
minTabSize: 30,
tabsOverflow: 41,
tempPrivateToken: '',
submitCommitsLoading: false,
binaryLoaded: false,
activeFile: RepoHelper.getDefaultActiveFile(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment