Commit cdd741ee authored by Mike Greiling's avatar Mike Greiling

fix eslint violations in repo editor files

parent 725a4fef
...@@ -96,7 +96,8 @@ const Api = { ...@@ -96,7 +96,8 @@ const Api = {
.done(projects => callback(projects)); .done(projects => callback(projects));
}, },
commitMultiple(id, data, callback) { commitMultiple(id, data) {
// see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions
const url = Api.buildUrl(Api.commitPath) const url = Api.buildUrl(Api.commitPath)
.replace(':id', id); .replace(':id', id);
return this.wrapAjaxCall({ return this.wrapAjaxCall({
......
...@@ -43,10 +43,11 @@ export default { ...@@ -43,10 +43,11 @@ export default {
}; };
Store.submitCommitsLoading = true; Store.submitCommitsLoading = true;
Service.commitFiles(payload) Service.commitFiles(payload)
.then(this.resetCommitState); .then(this.resetCommitState)
.catch(() => Flash('An error occured while committing your changes'));
}, },
resetCommitState(data) { resetCommitState() {
this.submitCommitsLoading = false; this.submitCommitsLoading = false;
this.changedFiles = []; this.changedFiles = [];
this.commitMessage = ''; this.commitMessage = '';
......
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