From 2e9f86d33367d99c7912c9db680511d0cb276dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Aime?= Date: Tue, 15 Jun 2021 17:20:51 +0200 Subject: [PATCH] Update on iocs-misp --- app/backend/src/views/iocs-misp.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/backend/src/views/iocs-misp.vue b/app/backend/src/views/iocs-misp.vue index 4becd1a..447f54b 100644 --- a/app/backend/src/views/iocs-misp.vue +++ b/app/backend/src/views/iocs-misp.vue @@ -18,16 +18,16 @@ - -
- ✓ MISP instance added successfully. + ✓ MISP instance added successfully. Redirecting to instances in 2 seconds.
@@ -108,6 +108,10 @@ export default { axios.post(`/api/misp/add`, { data: { instance: this.mispinst } }, { headers: {'X-Token': this.jwt} }).then(response => { if(response.data.status){ this.added = true; + setTimeout(function (){ + this.switch_tab('instances') + this.mispinst = { name:'', url:'',key:'', ssl:false } + }.bind(this), 2000); } else { this.error = response.data.message; }