Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
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
dataplatform
atlas
Commits
f1df13dc
Commit
f1df13dc
authored
5 years ago
by
sameer79
Committed by
nixonrodrigues
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3664 - Beta UI : Fix Option to select CLASSIFIED and NOT_CLASSIFIED.
Signed-off-by:
nixonrodrigues
<
nixon@apache.org
>
parent
14b57dbd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
main.js
dashboardv3/public/js/main.js
+1
-1
CommonViewFunction.js
dashboardv3/public/js/utils/CommonViewFunction.js
+4
-1
ClassificationTreeLayoutView.js
...blic/js/views/search/tree/ClassificationTreeLayoutView.js
+7
-7
No files found.
dashboardv3/public/js/main.js
View file @
f1df13dc
...
...
@@ -342,7 +342,7 @@ require(['App',
CommonViewFunction
.
fetchRootClassificationAttributes
({
url
:
UrlLinks
.
rootClassificationDefUrl
(
Enums
.
addOnClassification
[
0
]),
classification
:
Enums
.
addOnClassification
[
0
]
,
classification
:
Enums
.
addOnClassification
,
callback
:
function
()
{
--
that
.
asyncFetchCounter
;
startApp
();
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/utils/CommonViewFunction.js
View file @
f1df13dc
...
...
@@ -1012,7 +1012,10 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
cache
:
true
,
success
:
function
(
response
)
{
if
(
response
)
{
Globals
[
options
.
classification
]
=
Object
.
assign
(
response
,
{
name
:
options
.
classification
,
guid
:
options
.
classification
});
_
.
each
(
options
.
classification
,
function
(
rootClassification
)
{
var
responseData
=
$
.
extend
(
true
,
{},
response
);
Globals
[
rootClassification
]
=
Object
.
assign
(
responseData
,
{
name
:
rootClassification
,
guid
:
rootClassification
});
});
}
},
complete
:
function
(
response
)
{
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/views/search/tree/ClassificationTreeLayoutView.js
View file @
f1df13dc
...
...
@@ -258,18 +258,15 @@ define([
this
.
ui
.
classificationSearchTree
.
jstree
(
true
).
deselect_all
();
this
.
tagId
=
null
;
}
else
{
if
(
that
.
options
.
value
.
tag
===
"_ALL_CLASSIFICATION_TYPES"
&&
this
.
tagId
!==
"_ALL_CLASSIFICATION_TYPES"
)
{
if
(
(
that
.
options
.
value
.
tag
===
"_ALL_CLASSIFICATION_TYPES"
&&
this
.
tagId
!==
"_ALL_CLASSIFICATION_TYPES"
)
||
(
that
.
options
.
value
.
tag
===
"_NOT_CLASSIFIED"
&&
this
.
tagId
!==
"_NOT_CLASSIFIED"
)
||
(
that
.
options
.
value
.
tag
===
"_CLASSIFIED"
&&
this
.
tagId
!==
"_CLASSIFIED"
)
)
{
this
.
fromManualRender
=
true
;
if
(
this
.
tagId
)
{
this
.
ui
.
classificationSearchTree
.
jstree
(
true
).
deselect_node
(
this
.
tagId
);
}
this
.
tagId
=
Globals
[
that
.
options
.
value
.
tag
].
guid
;
this
.
ui
.
classificationSearchTree
.
jstree
(
true
).
select_node
(
this
.
tagId
);
}
else
if
(
this
.
tagId
!==
"_ALL_CLASSIFICATION_TYPES"
&&
that
.
options
.
value
.
tag
!==
this
.
tagId
)
{
if
((
that
.
options
.
value
.
tag
.
indexOf
(
'*'
)
!=
-
1
))
{
that
.
ui
.
classificationSearchTree
.
jstree
(
true
).
deselect_all
();
}
else
if
((
this
.
tagId
!==
"_ALL_CLASSIFICATION_TYPES"
&&
that
.
options
.
value
.
tag
!==
this
.
tagId
)
||
(
this
.
tagId
!==
"_NOT_CLASSIFIED"
&&
that
.
options
.
value
.
tag
!==
this
.
tagId
)
||
(
this
.
tagId
!==
"_CLASSIFIED"
&&
that
.
options
.
value
.
tag
!==
this
.
tagId
))
{
that
.
ui
.
wildCardValue
.
val
(
that
.
options
.
value
.
tag
);
}
var
dataFound
=
this
.
classificationDefCollection
.
fullCollection
.
find
(
function
(
obj
)
{
return
obj
.
get
(
"name"
)
===
that
.
options
.
value
.
tag
});
...
...
@@ -513,8 +510,10 @@ define([
return
classificationData
;
},
pushRootClassificationToJstree
:
function
(
data
)
{
var
rootClassification
=
Globals
[
Enums
.
addOnClassification
[
0
]];
var
isSelected
=
this
.
options
.
value
&&
this
.
options
.
value
.
tag
?
this
.
options
.
value
.
tag
==
rootClassification
.
name
:
false
;
var
that
=
this
;
_
.
each
(
Enums
.
addOnClassification
,
function
(
addOnClassification
)
{
var
rootClassification
=
Globals
[
addOnClassification
];
var
isSelected
=
that
.
options
.
value
&&
that
.
options
.
value
.
tag
?
that
.
options
.
value
.
tag
==
rootClassification
.
name
:
false
;
var
rootClassificationNode
=
{
text
:
_
.
escape
(
rootClassification
.
name
),
name
:
rootClassification
.
name
,
...
...
@@ -530,6 +529,7 @@ define([
}
}
data
.
push
(
rootClassificationNode
);
});
return
data
;
},
generateSearchTree
:
function
(
options
)
{
...
...
This diff is collapsed.
Click to expand it.
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