mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 18:28:55 +00:00
Set to null the vistimestamp just after call delete-vis route
This commit is contained in:
parent
fd20dd1052
commit
7867b26c3e
@ -112,11 +112,9 @@ var app = require('ui/modules').get('apps/webinar_app', [])
|
||||
|
||||
if (currentCompleted >= 100) {
|
||||
|
||||
if ($rootScope.visTimestamp && !visTitle !== 'Wazuh App Overview General Agents status') {
|
||||
genericReq.request('GET',`/api/wazuh-elastic/delete-vis/${$rootScope.visTimestamp}`)
|
||||
.then(() => {
|
||||
if ($rootScope.visTimestamp) {
|
||||
genericReq.request('GET',`/api/wazuh-elastic/delete-vis/${$rootScope.visTimestamp}`).catch(console.error)
|
||||
$rootScope.visTimestamp = null;
|
||||
});
|
||||
}
|
||||
|
||||
if (!visTitle !== 'Wazuh App Overview General Agents status') $rootScope.rendered = true;
|
||||
|
Loading…
Reference in New Issue
Block a user