Commit e2867640 authored by Mark Florian's avatar Mark Florian

Fix component option order in snippets

This fixes `vue/order-in-components` violations in the
`{,ee/}app/assets/javascripts/snippets` directories.

Part of https://gitlab.com/gitlab-org/gitlab/-/issues/297216.
parent a1239653
...@@ -41,6 +41,11 @@ export default { ...@@ -41,6 +41,11 @@ export default {
}, },
}, },
}, },
provide() {
return {
blobHash: Math.random().toString().split('.')[1],
};
},
props: { props: {
snippet: { snippet: {
type: Object, type: Object,
...@@ -51,11 +56,6 @@ export default { ...@@ -51,11 +56,6 @@ export default {
required: true, required: true,
}, },
}, },
provide() {
return {
blobHash: Math.random().toString().split('.')[1],
};
},
data() { data() {
return { return {
blobContent: '', blobContent: '',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment