Error message when there is no domain for selected account

parent 9075e91b
......@@ -774,6 +774,15 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
}
};
var noDomainError = function(){
$mdDialog.show($mdDialog.alert({
title: 'Error',
skipHide: true,
textContent: 'No domain added to this account',
ok: 'ok'
}));
};
function getDomainsAssoicatedToAccount(id,action){
$http({
method : "GET",
......@@ -784,9 +793,11 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
$scope.domains = result;
}
else{
$scope.domains = [
{domainName: $scope.account.accountName}
]
// $scope.domains = [
// {domainName: $scope.account.accountName}
// ]
noDomainError();
$scope.domains = [];
}
if(action == "Update"){
setDomain(action);
......
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