diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-07-30 16:37:28 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-07-30 16:37:28 +0300 |
commit | 202e37bbaf2c367e9963d0cc292aafd5fa6c5dfe (patch) | |
tree | 3064797caea578826a8b917b258bf1f11161a05e /app/assets/javascripts/diffs/components/diff_file_header.vue | |
parent | 036c6db81362e3eff84eefcdb8c1e72bb79ab77c (diff) |
Resolve "Copy diff file path as GFM" is broken
Diffstat (limited to 'app/assets/javascripts/diffs/components/diff_file_header.vue')
-rw-r--r-- | app/assets/javascripts/diffs/components/diff_file_header.vue | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/diffs/components/diff_file_header.vue b/app/assets/javascripts/diffs/components/diff_file_header.vue index c494d3bcd3e..0441d9f9e42 100644 --- a/app/assets/javascripts/diffs/components/diff_file_header.vue +++ b/app/assets/javascripts/diffs/components/diff_file_header.vue @@ -108,6 +108,9 @@ export default { false, ); }, + gfmCopyText() { + return `\`${this.diffFile.filePath}\``; + }, }, methods: { ...mapActions('diffs', ['toggleFileDiscussions']), @@ -191,6 +194,7 @@ export default { <clipboard-button :title="__('Copy file path to clipboard')" :text="diffFile.filePath" + :gfm="gfmCopyText" css-class="btn-default btn-transparent btn-clipboard" /> |