Dismiss alert in a method

parent 8b44ff32
...@@ -277,6 +277,9 @@ export default { ...@@ -277,6 +277,9 @@ export default {
); );
} }
}, },
dismissCodeSnippetAlert() {
this.codeSnippetCopiedFrom = '';
},
}, },
}; };
</script> </script>
...@@ -293,7 +296,7 @@ export default { ...@@ -293,7 +296,7 @@ export default {
v-if="codeSnippetCopiedFrom" v-if="codeSnippetCopiedFrom"
:source="codeSnippetCopiedFrom" :source="codeSnippetCopiedFrom"
class="gl-mb-5" class="gl-mb-5"
@dismiss="codeSnippetCopiedFrom = ''" @dismiss="dismissCodeSnippetAlert"
/> />
<gl-alert <gl-alert
v-if="showSuccessAlert" v-if="showSuccessAlert"
......
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