Fix wz-menu not appear the first time

This commit is contained in:
Adri Valle 2019-08-27 08:07:07 +02:00 committed by Jesús Ángel
parent 005d68af18
commit e9920a131c
2 changed files with 7 additions and 3 deletions

View File

@ -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);

View File

@ -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'
};