Dismiss alert in a method

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