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
c950c9bd
Commit
c950c9bd
authored
May 23, 2018
by
kevalbhatt
Committed by
Madhan Neethiraj
May 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2713: Glossary UI: enable assign button only when correct object-type is selected
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
1616b3f9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
AssignTermLayoutView.js
dashboardv2/public/js/views/glossary/AssignTermLayoutView.js
+7
-1
GlossaryLayoutView.js
dashboardv2/public/js/views/glossary/GlossaryLayoutView.js
+6
-1
No files found.
dashboardv2/public/js/views/glossary/AssignTermLayoutView.js
View file @
c950c9bd
...
...
@@ -87,6 +87,7 @@ define(['require',
"mainClass"
:
"wizard-modal"
});
this
.
modal
.
open
();
this
.
modal
.
$el
.
find
(
'button.ok'
).
attr
(
"disabled"
,
true
);
this
.
modal
.
on
(
'closeModal'
,
function
()
{
that
.
modal
.
trigger
(
'cancel'
);
if
(
that
.
assignTermError
&&
that
.
hideLoader
)
{
...
...
@@ -99,8 +100,13 @@ define(['require',
this
.
modal
.
on
(
'ok'
,
function
()
{
that
.
assignTerm
();
});
this
.
bindEvents
();
},
bindEvents
:
function
()
{
this
.
listenTo
(
this
.
glossaryCollection
,
"node_selected"
,
function
(
skip
)
{
this
.
modal
.
$el
.
find
(
'button.ok'
).
attr
(
"disabled"
,
false
);
},
this
);
},
bindEvents
:
function
()
{},
onRender
:
function
()
{
this
.
renderGlossaryTree
();
var
that
=
this
;
...
...
dashboardv2/public/js/views/glossary/GlossaryLayoutView.js
View file @
c950c9bd
...
...
@@ -256,7 +256,11 @@ define(['require',
var
objGuid
=
options
.
objGuid
,
node
=
options
.
node
,
index
=
options
.
index
;
if
(
!
that
.
guid
)
{
if
(
that
.
isAssignView
)
{
return
{
'opened'
:
true
}
}
else
if
(
!
that
.
guid
)
{
that
.
query
[
that
.
viewType
].
isNodeNotFoundAtLoad
=
false
;
var
selectedItem
=
{
"type"
:
"Glossary"
,
...
...
@@ -461,6 +465,7 @@ define(['require',
.
on
(
"select_node.jstree"
,
function
(
e
,
data
)
{
if
(
that
.
isAssignView
)
{
that
.
glossary
.
selectedItem
=
data
.
node
.
original
;
that
.
glossaryCollection
.
trigger
(
"node_selected"
);
}
else
{
var
popoverClassName
=
(
type
==
"term"
?
'.termPopover'
:
'.categoryPopover'
),
currentClickedPopoverEl
=
""
;
...
...
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