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>2022-02-18 15:15:31 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-02-18 15:15:31 +0300
commit6de2a04a4e355dcea04f4f0e7b25033537dad147 (patch)
tree64ae2aadebeaeb2ce54e644528df3a4f38c9059d /app/assets/javascripts/repository
parent6c744c5ac9f40a5ea8e1fd3b1482fcfa3876c4e9 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/repository')
-rw-r--r--app/assets/javascripts/repository/components/blob_edit.vue32
1 files changed, 0 insertions, 32 deletions
diff --git a/app/assets/javascripts/repository/components/blob_edit.vue b/app/assets/javascripts/repository/components/blob_edit.vue
index 69e2bd563c9..2ba0ab968bf 100644
--- a/app/assets/javascripts/repository/components/blob_edit.vue
+++ b/app/assets/javascripts/repository/components/blob_edit.vue
@@ -1,19 +1,10 @@
<script>
-import { GlButton } from '@gitlab/ui';
-import { __ } from '~/locale';
import WebIdeLink from '~/vue_shared/components/web_ide_link.vue';
-import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
export default {
- i18n: {
- edit: __('Edit'),
- webIde: __('Web IDE'),
- },
components: {
- GlButton,
WebIdeLink,
},
- mixins: [glFeatureFlagsMixin()],
props: {
showEditButton: {
type: Boolean,
@@ -43,7 +34,6 @@ export default {
<template>
<web-ide-link
- v-if="glFeatures.consolidatedEditButton"
:show-edit-button="showEditButton"
class="gl-mr-3"
:edit-url="editPath"
@@ -53,26 +43,4 @@ export default {
disable-fork-modal
@edit="onEdit"
/>
- <div v-else>
- <gl-button
- v-if="showEditButton"
- class="gl-mr-2"
- category="primary"
- variant="confirm"
- data-testid="edit"
- @click="onEdit('simple')"
- >
- {{ $options.i18n.edit }}
- </gl-button>
-
- <gl-button
- class="gl-mr-3"
- category="primary"
- variant="confirm"
- data-testid="web-ide"
- @click="onEdit('ide')"
- >
- {{ $options.i18n.webIde }}
- </gl-button>
- </div>
</template>