Fixed missing pointer and replaced delete API message

This commit is contained in:
Juanjo Jiménez 2018-03-23 12:42:42 +01:00
parent 66c0eb8d7b
commit 0be5c18881
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -32,6 +32,7 @@
.wz-menu-select {
border: none;
color: white;
cursor: pointer;
background-color: rgb(0, 68, 90);
}