Skip to content
Snippets Groups Projects
Commit 24902315 authored by Douwe Maan's avatar Douwe Maan
Browse files

Satisfy ESlint

parent 5efb0a95
No related branches found
No related tags found
2 merge requests!12073Add RC2 changes to 9-3-stable,!11315Paste a copied MR source branch name as code when pasted into a GFM form
Pipeline #
Loading
Loading
@@ -14,12 +14,13 @@ export default {
},
branchNameClipboardData() {
// This supports code in app/assets/javascripts/copy_to_clipboard.js that
// works around ClipboardJS limitations to allow the context-specific copy/pasting of plain text or GFM.
// works around ClipboardJS limitations to allow the context-specific
// copy/pasting of plain text or GFM.
return JSON.stringify({
text: this.mr.sourceBranch,
gfm: '`' + this.mr.sourceBranch + '`'
gfm: `\`${this.mr.sourceBranch}\``,
});
}
},
},
methods: {
isBranchTitleLong(branchTitle) {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment