diff --git a/src/App.vue b/src/App.vue index f819f22..bf0295d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -129,6 +129,18 @@ this.$refs.navbar.$refs.patternsDropdown.togglePatternFromWs(parsed.value, false); break; } + case 'PCAP_STARTED': { + this.$store.commit('startPcap'); + break; + } + case 'PCAP_STOPPED': { + this.$bvToast.toast(`All streams processed`, { + title: 'Notification', + variant: 'success', + autoHideDelay: 5000, + }); + break; + } default: { console.error('[WS] Event is not implemented!', parsed); break; diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index a9e29fb..dbe2a3d 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -15,6 +15,10 @@ @click.stop.prevent="toggleHexdump"> +