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
2acf41fd
Commit
2acf41fd
authored
7 years ago
by
kevalbhatt
Committed by
nixonrodrigues
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2111 : UI: Select query is not able to render the search table in Advance search
Signed-off-by:
nixonrodrigues
<
nixon@apache.org
>
parent
d603afa2
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
VSearchList.js
dashboardv2/public/js/collection/VSearchList.js
+14
-2
SearchResultLayoutView.js
dashboardv2/public/js/views/search/SearchResultLayoutView.js
+1
-1
No files found.
dashboardv2/public/js/collection/VSearchList.js
View file @
2acf41fd
...
...
@@ -31,14 +31,26 @@ define(['require',
model
:
VSearch
,
initialize
:
function
()
{
this
.
modelName
=
'VSearch'
;
this
.
modelName
=
'VSearch
List
'
;
this
.
modelAttrName
=
''
;
},
parseRecords
:
function
(
resp
,
options
)
{
this
.
queryType
=
resp
.
queryType
;
this
.
queryText
=
resp
.
queryText
;
this
.
referredEntities
=
resp
.
referredEntities
;
return
resp
.
entities
?
resp
.
entities
:
[];
if
(
resp
.
attributes
)
{
var
entities
=
[];
_
.
each
(
resp
.
attributes
.
values
,
function
(
obj
)
{
var
temp
=
{
attributes
:
{}
}
_
.
each
(
obj
,
function
(
val
,
key
)
{
temp
.
attributes
[
resp
.
attributes
.
name
[
key
]]
=
val
;
});
entities
.
push
(
temp
);
});
return
entities
;
}
else
{
return
resp
.
entities
?
resp
.
entities
:
[];
}
},
getBasicRearchResult
:
function
(
options
)
{
var
url
=
UrlLinks
.
searchApiUrl
(
'basic'
);
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/search/SearchResultLayoutView.js
View file @
2acf41fd
...
...
@@ -532,7 +532,7 @@ define(['require',
if
(
obj
.
guid
)
{
nameHtml
=
'<a title="'
+
name
+
'" href="#!/detailPage/'
+
obj
.
guid
+
'">'
+
name
+
'</a>'
;
}
else
{
nameHtml
=
'<
a title="'
+
name
+
'">'
+
name
+
'</a
>'
;
nameHtml
=
'<
span title="'
+
name
+
'">'
+
name
+
'</span
>'
;
}
if
(
obj
.
status
&&
Enums
.
entityStateReadOnly
[
obj
.
status
])
{
nameHtml
+=
'<button type="button" title="Deleted" class="btn btn-atlasAction btn-atlas deleteBtn"><i class="fa fa-trash"></i></button>'
;
...
...
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