Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mytime
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Narendar Vakiti
mytime
Commits
8d974640
Unverified
Commit
8d974640
authored
Jul 31, 2018
by
mshaik-nisum-com
Committed by
GitHub
Jul 31, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #95 from nisum-inc/NewChangesInDomain
Error message when there is no domain for selected account
parents
9075e91b
0fda802b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
ProjectController.js
src/main/webapp/WEB-INF/controllers/ProjectController.js
+15
-4
No files found.
src/main/webapp/WEB-INF/controllers/ProjectController.js
View file @
8d974640
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment