summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide/components/repo_commit_section.vue
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-03-27 11:24:06 +0100
committerPhil Hughes <me@iamphill.com>2018-03-27 11:24:06 +0100
commit74b77ebf50b458ebf9a5e9b5eebb2196c24f1387 (patch)
treec2cf08762b88f4802b548b38cef9e1a7e08ab0fc /app/assets/javascripts/ide/components/repo_commit_section.vue
parent3180f9a6b694066b86c89b3487c13caa1be52b0f (diff)
parent1d7ca033907d8dff18e74c41c391f58382f78ead (diff)
downloadgitlab-ce-74b77ebf50b458ebf9a5e9b5eebb2196c24f1387.tar.gz
Merge branch 'master' into ide-staged-changes
Diffstat (limited to 'app/assets/javascripts/ide/components/repo_commit_section.vue')
-rw-r--r--app/assets/javascripts/ide/components/repo_commit_section.vue18
1 files changed, 6 insertions, 12 deletions
diff --git a/app/assets/javascripts/ide/components/repo_commit_section.vue b/app/assets/javascripts/ide/components/repo_commit_section.vue
index caa0f25c827..6e2c3f1ff87 100644
--- a/app/assets/javascripts/ide/components/repo_commit_section.vue
+++ b/app/assets/javascripts/ide/components/repo_commit_section.vue
@@ -2,7 +2,7 @@
import { mapState, mapActions, mapGetters } from 'vuex';
import tooltip from '~/vue_shared/directives/tooltip';
import icon from '~/vue_shared/components/icon.vue';
-import modal from '~/vue_shared/components/modal.vue';
+import DeprecatedModal from '~/vue_shared/components/deprecated_modal.vue';
import LoadingButton from '~/vue_shared/components/loading_button.vue';
import commitFilesList from './commit_sidebar/list.vue';
import EmptyState from './commit_sidebar/empty_state.vue';
@@ -11,7 +11,7 @@ import * as consts from '../stores/modules/commit/constants';
export default {
components: {
- modal,
+ DeprecatedModal,
icon,
commitFilesList,
EmptyState,
@@ -34,11 +34,7 @@ export default {
computed: {
...mapState(['changedFiles', 'stagedFiles', 'rightPanelCollapsed']),
...mapState('commit', ['commitMessage', 'submitCommitLoading']),
- ...mapGetters('commit', [
- 'commitButtonDisabled',
- 'discardDraftButtonDisabled',
- 'branchName',
- ]),
+ ...mapGetters('commit', ['commitButtonDisabled', 'discardDraftButtonDisabled', 'branchName']),
},
methods: {
...mapActions('commit', [
@@ -48,9 +44,7 @@ export default {
'updateCommitAction',
]),
forceCreateNewBranch() {
- return this.updateCommitAction(consts.COMMIT_TO_NEW_BRANCH).then(() =>
- this.commitChanges(),
- );
+ return this.updateCommitAction(consts.COMMIT_TO_NEW_BRANCH).then(() => this.commitChanges());
},
},
};
@@ -60,7 +54,7 @@ export default {
<div
class="multi-file-commit-panel-section"
>
- <modal
+ <deprecated-modal
id="ide-create-branch-modal"
:primary-button-label="__('Create new branch')"
kind="success"
@@ -71,7 +65,7 @@ export default {
{{ __(`This branch has changed since you started editing.
Would you like to create a new branch?`) }}
</template>
- </modal>
+ </deprecated-modal>
<template
v-if="changedFiles.length || stagedFiles.length"
>