diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2018-01-19 09:38:34 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-01-19 09:38:34 +0000 |
commit | e79db43d2cf269beec700353e776e92b15ac9af9 (patch) | |
tree | 5e4a6ab9b4843c58288c670d5eabe7ff2f31fee1 /app/assets/javascripts/ide/components/repo_commit_section.vue | |
parent | dd633dc48f00f779755370e3849691dc776b5055 (diff) | |
download | gitlab-ce-e79db43d2cf269beec700353e776e92b15ac9af9.tar.gz |
WebIDE: Fix Commit bugs
Diffstat (limited to 'app/assets/javascripts/ide/components/repo_commit_section.vue')
-rw-r--r-- | app/assets/javascripts/ide/components/repo_commit_section.vue | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/app/assets/javascripts/ide/components/repo_commit_section.vue b/app/assets/javascripts/ide/components/repo_commit_section.vue index 5279417a72a..96b1bb78c1d 100644 --- a/app/assets/javascripts/ide/components/repo_commit_section.vue +++ b/app/assets/javascripts/ide/components/repo_commit_section.vue @@ -68,12 +68,8 @@ export default { this.commitChanges({ payload, newMr: this.startNewMR }) .then(() => { this.submitCommitsLoading = false; - this.$store.dispatch('getTreeData', { - projectId: this.currentProjectId, - branch: this.currentBranchId, - endpoint: `/tree/${this.currentBranchId}`, - force: true, - }); + this.commitMessage = ''; + this.startNewMR = false; }) .catch(() => { this.submitCommitsLoading = false; @@ -153,6 +149,7 @@ you started editing. Would you like to create a new branch?`)" type="submit" :disabled="commitButtonDisabled" class="btn btn-default btn-sm append-right-10 prepend-left-10" + :class="{ disabled: submitCommitsLoading }" > <i v-if="submitCommitsLoading" |