Skip to content

Commit

Permalink
feat: added updated endpoint event
Browse files Browse the repository at this point in the history
  • Loading branch information
mwargan committed Apr 26, 2024
1 parent a1d268d commit 4d342bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/views/SingleRedirectView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,16 @@ const getData = () => {
onMounted(() => {
$bus.$on(eventTypes.started_subscription, getData);
$bus.$on(eventTypes.unsubscribed, getData);
$bus.$on(eventTypes.updated_redirect, getData);
$bus.$on(eventTypes.updated_endpoint, getData);
getData();
});
onUnmounted(() => {
$bus.$off(eventTypes.started_subscription, getData);
$bus.$off(eventTypes.unsubscribed, getData);
$bus.$off(eventTypes.updated_redirect, getData);
$bus.$off(eventTypes.updated_endpoint, getData);
});
</script>
<template>
Expand Down

0 comments on commit 4d342bb

Please sign in to comment.