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 3030 :aria-label =" $t('icons.copy')"
3131 :title =" $t('icons.copy')"
3232 >
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+
3637 </button >
3738 <!-- Do not add newlines in <pre>, as they'll appear in the rendered HTML. -->
3839 <pre ><CodeBlock ><template
@@ -83,6 +84,7 @@ export default {
8384 return {
8485 syntaxHighlightedLines: [],
8586 copyState: CopyState .idle ,
87+ CopyState,
8688 };
8789 },
8890 props: {
You can’t perform that action at this time.
0 commit comments