Добавлены оповещения при начале обработки файла

This commit is contained in:
serega6531 2020-04-10 20:50:43 +03:00
parent 03a7a45361
commit c4d60c9ee2
2 changed files with 10 additions and 0 deletions

View File

@ -131,6 +131,11 @@
}
case 'PCAP_STARTED': {
this.$store.commit('startPcap');
this.$bvToast.toast(`Pcap file processing started`, {
title: 'Notification',
variant: 'info',
autoHideDelay: 5000,
});
break;
}
case 'PCAP_STOPPED': {

View File

@ -176,6 +176,11 @@
this.$http.post('pcap/start')
.then(() => {
this.$store.commit('startPcap');
this.$bvToast.toast(`Pcap file processing started`, {
title: 'Notification',
variant: 'info',
autoHideDelay: 5000,
});
}).catch(e => {
this.$bvToast.toast(`Failed to start pcap: ${e}`, {
title: 'Error',