mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 10:18:57 +00:00
Fixed missing pointer and replaced delete API message
This commit is contained in:
parent
66c0eb8d7b
commit
0be5c18881
@ -62,7 +62,7 @@ app.controller('settingsController', function ($scope, $rootScope, $http, $route
|
||||
let index = $scope.apiEntries.indexOf(item);
|
||||
if (appState.getCurrentAPI() !== undefined && appState.getCurrentAPI() !== null) {
|
||||
if ($scope.apiEntries[index]._id === JSON.parse(appState.getCurrentAPI()).id) { // We are trying to remove the one selected as default
|
||||
errorHandler.handle('Please remove another API.','Settings',true);
|
||||
errorHandler.handle("Can't delete the currently selected API. Please, select another API as default before deleting this one.",'Settings',true);
|
||||
if(!$rootScope.$$phase) $rootScope.$digest();
|
||||
return;
|
||||
}
|
||||
|
@ -32,6 +32,7 @@
|
||||
.wz-menu-select {
|
||||
border: none;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
background-color: rgb(0, 68, 90);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user