File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/components/ContentNode Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 30
30
:aria-label =" $t('icons.copy')"
31
31
:title =" $t('icons.copy')"
32
32
>
33
- <CopyIcon v-if =" copyState === 'idle'" class =" copy-icon" />
34
- <CheckmarkIcon v-if =" copyState === 'success'" class =" checkmark-icon" />
35
- <CrossIcon v-if =" copyState === 'failure'" class =" cross-icon" />
33
+ <CopyIcon v-if =" copyState === CopyState.idle" class =" copy-icon" />
34
+ <CheckmarkIcon v-else-if =" copyState === CopyState.success" class =" checkmark-icon" />
35
+ <CrossIcon v-else-if =" copyState === CopyState.failure" class =" cross-icon" />
36
+
36
37
</button >
37
38
<!-- Do not add newlines in <pre>, as they'll appear in the rendered HTML. -->
38
39
<pre ><CodeBlock ><template
@@ -83,6 +84,7 @@ export default {
83
84
return {
84
85
syntaxHighlightedLines: [],
85
86
copyState: CopyState .idle ,
87
+ CopyState,
86
88
};
87
89
},
88
90
props: {
You can’t perform that action at this time.
0 commit comments