Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-15 03:09:05 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-15 03:09:05 +0300
commitc9bd888d38746a9bb73629681d8c393c3ec77275 (patch)
tree776e4a8cff1dc6b407c39189040ec0e556aa312c /app/assets/javascripts/ide/components
parent0b12a5312c9701fbfed25fbb334d47900ced736b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/ide/components')
-rw-r--r--app/assets/javascripts/ide/components/commit_sidebar/list.vue5
-rw-r--r--app/assets/javascripts/ide/components/commit_sidebar/list_item.vue4
-rw-r--r--app/assets/javascripts/ide/components/commit_sidebar/stage_button.vue78
-rw-r--r--app/assets/javascripts/ide/components/commit_sidebar/unstage_button.vue41
-rw-r--r--app/assets/javascripts/ide/components/repo_commit_section.vue2
5 files changed, 0 insertions, 130 deletions
diff --git a/app/assets/javascripts/ide/components/commit_sidebar/list.vue b/app/assets/javascripts/ide/components/commit_sidebar/list.vue
index e16918ae025..d9a385a9d31 100644
--- a/app/assets/javascripts/ide/components/commit_sidebar/list.vue
+++ b/app/assets/javascripts/ide/components/commit_sidebar/list.vue
@@ -41,10 +41,6 @@ export default {
type: String,
required: true,
},
- itemActionComponent: {
- type: String,
- required: true,
- },
stagedList: {
type: Boolean,
required: false,
@@ -142,7 +138,6 @@ export default {
<li v-for="file in fileList" :key="file.key">
<list-item
:file="file"
- :action-component="itemActionComponent"
:key-prefix="keyPrefix"
:staged-list="stagedList"
:active-file-key="activeFileKey"
diff --git a/app/assets/javascripts/ide/components/commit_sidebar/list_item.vue b/app/assets/javascripts/ide/components/commit_sidebar/list_item.vue
index 46a96301e88..726e2b7e1fc 100644
--- a/app/assets/javascripts/ide/components/commit_sidebar/list_item.vue
+++ b/app/assets/javascripts/ide/components/commit_sidebar/list_item.vue
@@ -19,10 +19,6 @@ export default {
type: Object,
required: true,
},
- actionComponent: {
- type: String,
- required: true,
- },
keyPrefix: {
type: String,
required: false,
diff --git a/app/assets/javascripts/ide/components/commit_sidebar/stage_button.vue b/app/assets/javascripts/ide/components/commit_sidebar/stage_button.vue
deleted file mode 100644
index c14b8a47841..00000000000
--- a/app/assets/javascripts/ide/components/commit_sidebar/stage_button.vue
+++ /dev/null
@@ -1,78 +0,0 @@
-<script>
-import $ from 'jquery';
-import { mapActions } from 'vuex';
-import { sprintf, __ } from '~/locale';
-import Icon from '~/vue_shared/components/icon.vue';
-import tooltip from '~/vue_shared/directives/tooltip';
-import DeprecatedModal2 from '~/vue_shared/components/deprecated_modal_2.vue';
-
-export default {
- components: {
- Icon,
- GlModal: DeprecatedModal2,
- },
- directives: {
- tooltip,
- },
- props: {
- path: {
- type: String,
- required: true,
- },
- },
- computed: {
- modalId() {
- return `discard-file-${this.path}`;
- },
- modalTitle() {
- return sprintf(__('Discard changes to %{path}?'), { path: this.path });
- },
- },
- methods: {
- ...mapActions(['stageChange', 'discardFileChanges']),
- showDiscardModal() {
- $(document.getElementById(this.modalId)).modal('show');
- },
- },
-};
-</script>
-
-<template>
- <div v-once class="multi-file-discard-btn d-flex">
- <button
- v-tooltip
- :aria-label="__('Stage changes')"
- :title="__('Stage changes')"
- type="button"
- class="btn btn-blank align-items-center"
- data-container="body"
- data-boundary="viewport"
- data-placement="bottom"
- @click.stop.prevent="stageChange(path)"
- >
- <icon :size="16" name="mobile-issue-close" class="ml-auto mr-auto" />
- </button>
- <button
- v-tooltip
- :aria-label="__('Discard changes')"
- :title="__('Discard changes')"
- type="button"
- class="btn btn-blank align-items-center"
- data-container="body"
- data-boundary="viewport"
- data-placement="bottom"
- @click.stop.prevent="showDiscardModal"
- >
- <icon :size="16" name="remove" class="ml-auto mr-auto" />
- </button>
- <gl-modal
- :id="modalId"
- :header-title-text="modalTitle"
- :footer-primary-button-text="__('Discard changes')"
- footer-primary-button-variant="danger"
- @submit="discardFileChanges(path)"
- >
- {{ __("You will lose all changes you've made to this file. This action cannot be undone.") }}
- </gl-modal>
- </div>
-</template>
diff --git a/app/assets/javascripts/ide/components/commit_sidebar/unstage_button.vue b/app/assets/javascripts/ide/components/commit_sidebar/unstage_button.vue
deleted file mode 100644
index 0567ef54ff3..00000000000
--- a/app/assets/javascripts/ide/components/commit_sidebar/unstage_button.vue
+++ /dev/null
@@ -1,41 +0,0 @@
-<script>
-import { mapActions } from 'vuex';
-import Icon from '~/vue_shared/components/icon.vue';
-import tooltip from '~/vue_shared/directives/tooltip';
-
-export default {
- components: {
- Icon,
- },
- directives: {
- tooltip,
- },
- props: {
- path: {
- type: String,
- required: true,
- },
- },
- methods: {
- ...mapActions(['unstageChange']),
- },
-};
-</script>
-
-<template>
- <div v-once class="multi-file-discard-btn d-flex">
- <button
- v-tooltip
- :aria-label="__('Unstage changes')"
- :title="__('Unstage changes')"
- type="button"
- class="btn btn-blank align-items-center"
- data-container="body"
- data-boundary="viewport"
- data-placement="bottom"
- @click.stop.prevent="unstageChange(path)"
- >
- <icon :size="16" name="redo" class="ml-auto mr-auto" />
- </button>
- </div>
-</template>
diff --git a/app/assets/javascripts/ide/components/repo_commit_section.vue b/app/assets/javascripts/ide/components/repo_commit_section.vue
index 35d52bf7528..b3a7597e7bb 100644
--- a/app/assets/javascripts/ide/components/repo_commit_section.vue
+++ b/app/assets/javascripts/ide/components/repo_commit_section.vue
@@ -94,7 +94,6 @@ export default {
:empty-state-text="__('There are no unstaged changes')"
action="stageAllChanges"
action-btn-icon="stage-all"
- item-action-component="stage-button"
class="is-first"
icon-name="unstaged"
/>
@@ -108,7 +107,6 @@ export default {
:empty-state-text="__('There are no staged changes')"
action="unstageAllChanges"
action-btn-icon="unstage-all"
- item-action-component="unstage-button"
icon-name="staged"
/>
</template>