summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-15 00:09:05 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-15 00:09:05 +0000
commitc9bd888d38746a9bb73629681d8c393c3ec77275 (patch)
tree776e4a8cff1dc6b407c39189040ec0e556aa312c /app
parent0b12a5312c9701fbfed25fbb334d47900ced736b (diff)
downloadgitlab-ce-c9bd888d38746a9bb73629681d8c393c3ec77275.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-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
-rw-r--r--app/assets/stylesheets/framework/common.scss4
-rw-r--r--app/assets/stylesheets/utilities.scss3
-rw-r--r--app/controllers/projects/issues_controller.rb1
8 files changed, 8 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>
diff --git a/app/assets/stylesheets/framework/common.scss b/app/assets/stylesheets/framework/common.scss
index 7f0d10ae4ac..085bf0f0a37 100644
--- a/app/assets/stylesheets/framework/common.scss
+++ b/app/assets/stylesheets/framework/common.scss
@@ -55,6 +55,10 @@
background-color: $gray-light;
}
+.bg-white {
+ background-color: $white;
+}
+
.bg-line-target-blue {
background: $line-target-blue;
}
diff --git a/app/assets/stylesheets/utilities.scss b/app/assets/stylesheets/utilities.scss
index d6bc4d26bff..1517015dda0 100644
--- a/app/assets/stylesheets/utilities.scss
+++ b/app/assets/stylesheets/utilities.scss
@@ -29,10 +29,13 @@
}
.border-width-1px { border-width: 1px; }
+.border-bottom-width-1px { border-bottom-width: 1px; }
.border-style-dashed { border-style: dashed; }
.border-style-solid { border-style: solid; }
+.border-bottom-style-solid { border-bottom-style: solid; }
.border-color-blue-300 { border-color: $blue-300; }
.border-color-default { border-color: $border-color; }
+.border-bottom-color-default { border-bottom-color: $border-color; }
.box-shadow-default { box-shadow: 0 2px 4px 0 $black-transparent; }
.mh-50vh { max-height: 50vh; }
diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb
index bdb8abdeb45..0944d7b47bf 100644
--- a/app/controllers/projects/issues_controller.rb
+++ b/app/controllers/projects/issues_controller.rb
@@ -44,6 +44,7 @@ class Projects::IssuesController < Projects::ApplicationController
before_action do
push_frontend_feature_flag(:vue_issuable_sidebar, project.group)
+ push_frontend_feature_flag(:issue_link_types, project)
end
around_action :allow_gitaly_ref_name_caching, only: [:discussions]