We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb45e43 commit d6037c5Copy full SHA for d6037c5
src/components/ActionButton.vue
@@ -1,5 +1,5 @@
1
<template>
2
- <button :class="`ActionButton ActionButton-${theme}`" @click="onClick">
+ <button :class="`ActionButton ActionButton-${theme}`" @click="$emit('click')">
3
<span>{{ text }}</span>
4
</button>
5
</template>
@@ -16,10 +16,6 @@ export default class ActionButton extends Vue {
16
17
@Prop({ default: '' })
18
text!: string | undefined
19
-
20
- onClick(): void {
21
- this.$router.push('/')
22
- }
23
}
24
</script>
25
0 commit comments