summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsamdbeckham <sbeckham@gitlab.com>2018-05-30 13:22:51 +0100
committersamdbeckham <sbeckham@gitlab.com>2018-05-30 13:22:51 +0100
commita05ce19c9aa0de3cbc48c37105c23cdd60be781a (patch)
tree50ac01f6a65918814146af06ed11100480e2a37f
parent0c7d73722111b6988e60109f15e54cb96b5788c9 (diff)
parent52a05aaa4aaafc6bc3d535440611ec10cff46aa3 (diff)
downloadgitlab-ce-45520-remove-links-from-web-ide-unexpectedly-navigate-you-to-a-different-page.tar.gz
Merge branch '45520-remove-links-from-web-ide-unexpectedly-navigate-you-to-a-different-page' of gitlab.com:gitlab-org/gitlab-ce into 45520-remove-links-from-web-ide-unexpectedly-navigate-you-to-a-different-page45520-remove-links-from-web-ide-unexpectedly-navigate-you-to-a-different-page
-rw-r--r--app/assets/javascripts/ide/components/ide_file_buttons.vue84
1 files changed, 0 insertions, 84 deletions
diff --git a/app/assets/javascripts/ide/components/ide_file_buttons.vue b/app/assets/javascripts/ide/components/ide_file_buttons.vue
deleted file mode 100644
index 30b00abf6ed..00000000000
--- a/app/assets/javascripts/ide/components/ide_file_buttons.vue
+++ /dev/null
@@ -1,84 +0,0 @@
-<script>
-import { __ } from '~/locale';
-import tooltip from '~/vue_shared/directives/tooltip';
-import Icon from '~/vue_shared/components/icon.vue';
-
-export default {
- components: {
- Icon,
- },
- directives: {
- tooltip,
- },
- props: {
- file: {
- type: Object,
- required: true,
- },
- },
- computed: {
- showButtons() {
- return (
- this.file.rawPath || this.file.blamePath || this.file.commitsPath || this.file.permalink
- );
- },
- rawDownloadButtonLabel() {
- return this.file.binary ? __('Download') : __('Raw');
- },
- },
-};
-</script>
-
-<template>
- <div
- v-if="showButtons"
- class="float-right ide-btn-group"
- >
- <a
- v-tooltip
- v-if="!file.binary"
- :href="file.blamePath"
- :title="__('Blame')"
- class="btn btn-sm btn-transparent blame"
- >
- <icon
- name="blame"
- :size="16"
- />
- </a>
- <a
- v-tooltip
- :href="file.commitsPath"
- :title="__('History')"
- class="btn btn-sm btn-transparent history"
- >
- <icon
- name="history"
- :size="16"
- />
- </a>
- <a
- v-tooltip
- :href="file.permalink"
- :title="__('Permalink')"
- class="btn btn-sm btn-transparent permalink"
- >
- <icon
- name="link"
- :size="16"
- />
- </a>
- <a
- v-tooltip
- :href="file.rawPath"
- target="_blank"
- class="btn btn-sm btn-transparent prepend-left-10 raw"
- rel="noopener noreferrer"
- :title="rawDownloadButtonLabel">
- <icon
- name="download"
- :size="16"
- />
- </a>
- </div>
-</template>