Remove unnecessary state property

parent 831c2fd1
......@@ -59,7 +59,6 @@ export default {
showSuccessAlert: false,
successType: null,
codeSnippetCopiedFrom: '',
codeSnippetAlertDismissed: false,
};
},
......@@ -176,9 +175,6 @@ export default {
return null;
}
},
showCodeSnippetAlert() {
return this.codeSnippetCopiedFrom && !this.codeSnippetAlertDismissed;
},
},
i18n: {
tabEdit: s__('Pipelines|Write pipeline configuration'),
......@@ -291,10 +287,10 @@ export default {
/>
<div v-else>
<code-snippet-alert
v-if="showCodeSnippetAlert"
v-if="codeSnippetCopiedFrom"
:source="codeSnippetCopiedFrom"
class="gl-mb-5"
@dismiss="codeSnippetAlertDismissed = true"
@dismiss="codeSnippetCopiedFrom = ''"
/>
<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