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
bae32755
Commit
bae32755
authored
6 years ago
by
Abhishek Kadam
Committed by
nixonrodrigues
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2766: Turn off hyperlinks for entities with no entity-read access in search result display
Signed-off-by:
nixonrodrigues
<
nixon@apache.org
>
parent
eb895a62
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
SearchResultLayoutView.js
dashboardv2/public/js/views/search/SearchResultLayoutView.js
+10
-0
No files found.
dashboardv2/public/js/views/search/SearchResultLayoutView.js
View file @
bae32755
...
...
@@ -627,7 +627,11 @@ define(['require',
nameHtml
=
""
,
name
=
Utils
.
getName
(
obj
);
if
(
obj
.
guid
)
{
if
(
obj
.
guid
==
"-1"
)
{
nameHtml
=
'<span title="'
+
name
+
'">'
+
name
+
'</span>'
;
}
else
{
nameHtml
=
'<a title="'
+
name
+
'" href="#!/detailPage/'
+
obj
.
guid
+
(
that
.
fromView
?
"?from="
+
that
.
fromView
:
""
)
+
'">'
+
name
+
'</a>'
;
}
}
else
{
nameHtml
=
'<span title="'
+
name
+
'">'
+
name
+
'</span>'
;
}
...
...
@@ -826,6 +830,9 @@ define(['require',
formatter
:
_
.
extend
({},
Backgrid
.
CellFormatter
.
prototype
,
{
fromRaw
:
function
(
rawValue
,
model
)
{
var
obj
=
model
.
toJSON
();
if
(
obj
.
guid
==
"-1"
)
{
return
}
if
(
obj
.
status
&&
Enums
.
entityStateReadOnly
[
obj
.
status
])
{
return
'<div class="readOnly">'
+
CommonViewFunction
.
tagForTable
(
obj
);
+
'</div>'
;
}
else
{
...
...
@@ -854,6 +861,9 @@ define(['require',
formatter
:
_
.
extend
({},
Backgrid
.
CellFormatter
.
prototype
,
{
fromRaw
:
function
(
rawValue
,
model
)
{
var
obj
=
model
.
toJSON
();
if
(
obj
.
guid
==
"-1"
)
{
return
}
if
(
obj
.
typeName
&&
!
(
_
.
startsWith
(
obj
.
typeName
,
"AtlasGlossary"
)))
{
if
(
obj
.
status
&&
Enums
.
entityStateReadOnly
[
obj
.
status
])
{
return
'<div class="readOnly">'
+
CommonViewFunction
.
termForTable
(
obj
);
+
'</div>'
;
...
...
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