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:
Diffstat (limited to 'app/assets/javascripts/repository/components/blob_header_edit.vue')
-rw-r--r--app/assets/javascripts/repository/components/blob_header_edit.vue25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/assets/javascripts/repository/components/blob_header_edit.vue b/app/assets/javascripts/repository/components/blob_header_edit.vue
new file mode 100644
index 00000000000..f3649895736
--- /dev/null
+++ b/app/assets/javascripts/repository/components/blob_header_edit.vue
@@ -0,0 +1,25 @@
+<script>
+import { GlButton } from '@gitlab/ui';
+import { __ } from '~/locale';
+
+export default {
+ i18n: {
+ edit: __('Edit'),
+ },
+ components: {
+ GlButton,
+ },
+ props: {
+ editPath: {
+ type: String,
+ required: true,
+ },
+ },
+};
+</script>
+
+<template>
+ <gl-button category="primary" variant="confirm" class="gl-mr-3" :href="editPath">
+ {{ $options.i18n.edit }}
+ </gl-button>
+</template>