mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 09:55:18 +00:00
Fix wz-menu not appear the first time
This commit is contained in:
parent
005d68af18
commit
e9920a131c
@ -198,6 +198,7 @@ export function settingsWizard(
|
||||
genericReq
|
||||
.request('GET', '/elastic/apis')
|
||||
.then(data => {
|
||||
appState.setWzMenu();
|
||||
if (data.data.length > 0) {
|
||||
const apiEntries = data.data;
|
||||
appState.setCurrentAPI(
|
||||
@ -228,6 +229,7 @@ export function settingsWizard(
|
||||
genericReq
|
||||
.request('GET', '/elastic/apis')
|
||||
.then(data => {
|
||||
appState.setWzMenu();
|
||||
if (
|
||||
data.data.length > 0 &&
|
||||
data.data.find(x => x['_id'] == apiId)
|
||||
@ -257,7 +259,6 @@ export function settingsWizard(
|
||||
});
|
||||
}
|
||||
}
|
||||
appState.setWzMenu();
|
||||
return deferred.promise;
|
||||
} catch (error) {
|
||||
!disableErrors && errorHandler.handle(error);
|
||||
|
@ -115,6 +115,9 @@ export const KeyEquivalence = {
|
||||
mtu: 'MTU',
|
||||
attributes: 'Attributes',
|
||||
registerIP: 'Register IP',
|
||||
key: 'Key',
|
||||
value: 'Value'
|
||||
policy_id: 'Policy ID',
|
||||
policy_ID: 'Policy ID',
|
||||
compliance: 'Compliance',
|
||||
rules: 'Rules',
|
||||
reason: 'Reason'
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user