Skip to content

Commit d6037c5

Browse files
committed
Make ActionButton emit click event
1 parent bb45e43 commit d6037c5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/components/ActionButton.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<button :class="`ActionButton ActionButton-${theme}`" @click="onClick">
2+
<button :class="`ActionButton ActionButton-${theme}`" @click="$emit('click')">
33
<span>{{ text }}</span>
44
</button>
55
</template>
@@ -16,10 +16,6 @@ export default class ActionButton extends Vue {
1616
1717
@Prop({ default: '' })
1818
text!: string | undefined
19-
20-
onClick(): void {
21-
this.$router.push('/')
22-
}
2319
}
2420
</script>
2521

0 commit comments

Comments
 (0)