mirror of
https://github.com/Av0idD4rk/packmate.git
synced 2026-10-25 06:09:25 +00:00
Добавлены оповещения при начале обработки файла
This commit is contained in:
parent
03a7a45361
commit
c4d60c9ee2
@ -131,6 +131,11 @@
|
|||||||
}
|
}
|
||||||
case 'PCAP_STARTED': {
|
case 'PCAP_STARTED': {
|
||||||
this.$store.commit('startPcap');
|
this.$store.commit('startPcap');
|
||||||
|
this.$bvToast.toast(`Pcap file processing started`, {
|
||||||
|
title: 'Notification',
|
||||||
|
variant: 'info',
|
||||||
|
autoHideDelay: 5000,
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'PCAP_STOPPED': {
|
case 'PCAP_STOPPED': {
|
||||||
|
|||||||
@ -176,6 +176,11 @@
|
|||||||
this.$http.post('pcap/start')
|
this.$http.post('pcap/start')
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$store.commit('startPcap');
|
this.$store.commit('startPcap');
|
||||||
|
this.$bvToast.toast(`Pcap file processing started`, {
|
||||||
|
title: 'Notification',
|
||||||
|
variant: 'info',
|
||||||
|
autoHideDelay: 5000,
|
||||||
|
});
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
this.$bvToast.toast(`Failed to start pcap: ${e}`, {
|
this.$bvToast.toast(`Failed to start pcap: ${e}`, {
|
||||||
title: 'Error',
|
title: 'Error',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user