Commit e7bcb71e authored by NISUM's avatar NISUM

Error message in Manage Projects

parent 065ebe0b
......@@ -1513,20 +1513,24 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
$http(req).then(function mySuccess(response) {
$scope.result = "Success";
var titleOfModel = "Attention";
$scope.objectId = response.data.records.id;
if(response.data.message =="TeamMate added successfuly"){
titleOfModel = "";
if(response.data.records!=null){
$scope.objectId = response.data.records;
titleOfModel = "";
$timeout(function(){
updateGrid(action,record);
removeTab('Add');
},500);
}
$mdDialog.show($mdDialog.alert({
skipHide: true,
title:titleOfModel,
textContent: response.data.message,
ok: 'ok'
}));
}));
}
else{
$scope.alertMsg=response.data.message;
}
}, function myError(response){
$scope.result = "Error";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment