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
7b650f7a
Commit
7b650f7a
authored
Apr 22, 2020
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3750 : UI: Disable "Propagated from" button inside classification tab if…
ATLAS-3750 : UI: Disable "Propagated from" button inside classification tab if entity status is purged
parent
5afa5723
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
7 deletions
+22
-7
Enums.js
dashboardv2/public/js/utils/Enums.js
+7
-1
TagDetailTableLayoutView.js
dashboardv2/public/js/views/tag/TagDetailTableLayoutView.js
+5
-3
Enums.js
dashboardv3/public/js/utils/Enums.js
+5
-0
TagDetailTableLayoutView.js
dashboardv3/public/js/views/tag/TagDetailTableLayoutView.js
+5
-3
No files found.
dashboardv2/public/js/utils/Enums.js
View file @
7b650f7a
...
...
@@ -39,7 +39,9 @@ define(['require'], function(require) {
LABEL_ADD
:
"Label(s) Added"
,
LABEL_DELETE
:
"Label(s) Deleted"
,
ENTITY_PURGE
:
"Entity Purged"
,
BUSINESS_ATTRIBUTE_UPDATE
:
"Business Attribute(s) Updated"
BUSINESS_ATTRIBUTE_ADD
:
"Business Attribute(s) Added"
,
BUSINESS_ATTRIBUTE_UPDATE
:
"Business Attribute(s) Updated"
,
BUSINESS_ATTRIBUTE_DELETE
:
"Business Attribute(s) Deleted"
}
Enums
.
entityStateReadOnly
=
{
...
...
@@ -49,6 +51,10 @@ define(['require'], function(require) {
STATUS_DELETED
:
true
}
Enums
.
isEntityPurged
=
{
PURGED
:
true
}
Enums
.
lineageUrlType
=
{
INPUT
:
'inputs'
,
OUTPUT
:
'outputs'
,
...
...
dashboardv2/public/js/views/tag/TagDetailTableLayoutView.js
View file @
7b650f7a
...
...
@@ -22,8 +22,9 @@ define(['require',
'utils/CommonViewFunction'
,
'utils/Utils'
,
'collection/VTagList'
,
'utils/Messages'
],
function
(
require
,
Backbone
,
TagDetailTableLayoutView_tmpl
,
CommonViewFunction
,
Utils
,
VTagList
,
Messages
)
{
'utils/Messages'
,
'utils/Enums'
],
function
(
require
,
Backbone
,
TagDetailTableLayoutView_tmpl
,
CommonViewFunction
,
Utils
,
VTagList
,
Messages
,
Enums
)
{
'use strict'
;
var
TagDetailTableLayoutView
=
Backbone
.
Marionette
.
LayoutView
.
extend
(
...
...
@@ -123,7 +124,8 @@ define(['require',
formatter
:
_
.
extend
({},
Backgrid
.
CellFormatter
.
prototype
,
{
fromRaw
:
function
(
rawValue
,
model
)
{
if
(
that
.
guid
!==
model
.
get
(
'entityGuid'
))
{
var
propagtedFrom
=
' <span class="btn btn-action btn-sm btn-icon btn-blue" title="Propagated From" data-guid='
+
model
.
get
(
'entityGuid'
)
+
' data-id="propagatedFromClick"><span> Propagated From </span></span>'
;
var
purgeEntityBtn
=
(
Enums
.
isEntityPurged
[
model
.
get
(
'entityStatus'
)])
?
' title="Entity not available" disabled'
:
' title="Propagated From" data-id="propagatedFromClick"'
,
propagtedFrom
=
' <span class="btn btn-action btn-sm btn-icon btn-blue" data-guid='
+
model
.
get
(
'entityGuid'
)
+
purgeEntityBtn
+
'><span> Propagated From </span></span>'
;
return
'<a title="" href="#!/tag/tagAttribute/'
+
model
.
get
(
'typeName'
)
+
'">'
+
model
.
get
(
'typeName'
)
+
'</a>'
+
propagtedFrom
;
}
else
{
return
'<a title="'
+
model
.
get
(
'typeName'
)
+
'" href="#!/tag/tagAttribute/'
+
model
.
get
(
'typeName'
)
+
'">'
+
model
.
get
(
'typeName'
)
+
'</a>'
;
...
...
dashboardv3/public/js/utils/Enums.js
View file @
7b650f7a
...
...
@@ -40,6 +40,7 @@ define(['require'], function(require) {
LABEL_DELETE
:
"Label(s) Deleted"
,
ENTITY_PURGE
:
"Entity Purged"
,
BUSINESS_ATTRIBUTE_ADD
:
"Business Attribute(s) Added"
,
BUSINESS_ATTRIBUTE_UPDATE
:
"Business Attribute(s) Updated"
,
BUSINESS_ATTRIBUTE_DELETE
:
"Business Attribute(s) Deleted"
}
...
...
@@ -50,6 +51,10 @@ define(['require'], function(require) {
STATUS_DELETED
:
true
}
Enums
.
isEntityPurged
=
{
PURGED
:
true
}
Enums
.
lineageUrlType
=
{
INPUT
:
'inputs'
,
OUTPUT
:
'outputs'
,
...
...
dashboardv3/public/js/views/tag/TagDetailTableLayoutView.js
View file @
7b650f7a
...
...
@@ -22,8 +22,9 @@ define(['require',
'utils/CommonViewFunction'
,
'utils/Utils'
,
'collection/VTagList'
,
'utils/Messages'
],
function
(
require
,
Backbone
,
TagDetailTableLayoutView_tmpl
,
CommonViewFunction
,
Utils
,
VTagList
,
Messages
)
{
'utils/Messages'
,
'utils/Enums'
],
function
(
require
,
Backbone
,
TagDetailTableLayoutView_tmpl
,
CommonViewFunction
,
Utils
,
VTagList
,
Messages
,
Enums
)
{
'use strict'
;
var
TagDetailTableLayoutView
=
Backbone
.
Marionette
.
LayoutView
.
extend
(
...
...
@@ -123,7 +124,8 @@ define(['require',
formatter
:
_
.
extend
({},
Backgrid
.
CellFormatter
.
prototype
,
{
fromRaw
:
function
(
rawValue
,
model
)
{
if
(
that
.
guid
!==
model
.
get
(
'entityGuid'
))
{
var
propagtedFrom
=
' <span class="btn btn-action btn-sm btn-icon btn-blue" title="Propagated From" data-guid='
+
model
.
get
(
'entityGuid'
)
+
' data-id="propagatedFromClick"><span> Propagated From </span></span>'
;
var
purgeEntityBtn
=
(
Enums
.
isEntityPurged
[
model
.
get
(
'entityStatus'
)])
?
' title="Entity not available" disabled'
:
' title="Propagated From" data-id="propagatedFromClick"'
,
propagtedFrom
=
' <span class="btn btn-action btn-sm btn-icon btn-blue" data-guid='
+
model
.
get
(
'entityGuid'
)
+
purgeEntityBtn
+
'><span> Propagated From </span></span>'
;
return
'<a title="" href="#!/tag/tagAttribute/'
+
model
.
get
(
'typeName'
)
+
'">'
+
model
.
get
(
'typeName'
)
+
'</a>'
+
propagtedFrom
;
}
else
{
return
'<a title="'
+
model
.
get
(
'typeName'
)
+
'" href="#!/tag/tagAttribute/'
+
model
.
get
(
'typeName'
)
+
'">'
+
model
.
get
(
'typeName'
)
+
'</a>'
;
...
...
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