aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-03-15 23:12:32 +0100
committerMateja <mail@matejamaric.com>2021-03-15 23:12:32 +0100
commit4e6fa681c3f8f01a44a3446f80524842a4f42274 (patch)
tree8dbb6d2cd25a065cd5dab05accb01e4bc150c1a7
parent002399d427f11646847904b11b1373204644aee2 (diff)
downloadyota-laravel-4e6fa681c3f8f01a44a3446f80524842a4f42274.tar.gz
yota-laravel-4e6fa681c3f8f01a44a3446f80524842a4f42274.zip
Update activities on filter change.
I had to use kebab-case for event and listen directly on child component.
-rw-r--r--resources/js/components/activities.vue4
-rw-r--r--resources/js/components/call-sign-filter.vue2
2 files changed, 3 insertions, 3 deletions
diff --git a/resources/js/components/activities.vue b/resources/js/components/activities.vue
index 928bae6..2f2cf03 100644
--- a/resources/js/components/activities.vue
+++ b/resources/js/components/activities.vue
@@ -1,6 +1,6 @@
<template>
- <div @signChanged="filterChanged()">
- <call-sign-filter></call-sign-filter>
+ <div>
+ <call-sign-filter @sign-changed="filterChanged()"></call-sign-filter>
<div class="table-responsive mt-2">
<table class="table table-striped table-bordered" style="white-space:nowrap;">
diff --git a/resources/js/components/call-sign-filter.vue b/resources/js/components/call-sign-filter.vue
index 156bddc..bf554bd 100644
--- a/resources/js/components/call-sign-filter.vue
+++ b/resources/js/components/call-sign-filter.vue
@@ -20,7 +20,7 @@ export default {
},
set(value) {
this.$store.dispatch('setSelectedSign', value);
- this.$emit('signChanged');
+ this.$emit('sign-changed');
}
},
options() {