diff --git a/app/views/fbo-admin/dashboard.controller.js b/app/views/fbo-admin/dashboard.controller.js index d0c8bfd..c0dd435 100644 --- a/app/views/fbo-admin/dashboard.controller.js +++ b/app/views/fbo-admin/dashboard.controller.js @@ -37,7 +37,9 @@ console.log($scope.user) var formdata = "companyName=" + $scope.user.companyName + "&email=" + $scope.user.email + "&username=" + $scope.user.username + "&firstName=" + $scope.user.firstName + "&lastName=" + $scope.user.lastName + "&password=" + $scope.user.password + "&phone=" + $scope.user.phone + "&mobile=" + $scope.user.mobile + "&status=" + $scope.user.status + "&userType=" + $scope.user.userType + "&clientNote=" + $scope.user.clientNote; FBOAdmin.registerUser(formdata).then(function(result) { - + toastr.success('Created Successfully', { + closeButton: true + }) $scope.feature.accountId = result; var featureControlData = "accountId=" + $scope.feature.accountId + "&level=" + $scope.feature.level + "&essintaPosSystem=" + $scope.feature.essintaPosSystem + "&acuQuote=" + $scope.feature.acuQuote + "&acuTrack=" + $scope.feature.acuTrack + "&fuelProgram=" + $scope.feature.fuelProgram + "&amstatIntegration=" + $scope.feature.amstatIntegration+ "&posAccountingIntegration=" @@ -48,7 +50,11 @@ console.log(response) }) - }) + }, function (err) { + toastr.error('Error in registering', { + closeButton: true + }) + }); } $scope.enableEssId = function(){ diff --git a/app/views/fbo-admin/dashboard.service.js b/app/views/fbo-admin/dashboard.service.js index 3d41c22..a91cb90 100644 --- a/app/views/fbo-admin/dashboard.service.js +++ b/app/views/fbo-admin/dashboard.service.js @@ -17,6 +17,8 @@ }) .success(function(result) { deferred.resolve(result); + }).error(function(error){ + deferred.reject(error); }) return deferred.promise; } diff --git a/app/views/fbo-flight/flight.html b/app/views/fbo-flight/flight.html index 5b74def..f5c6ec9 100644 --- a/app/views/fbo-flight/flight.html +++ b/app/views/fbo-flight/flight.html @@ -80,7 +80,7 @@
Aircraft List
- +