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
7 years ago
by
kevalbhatt
Committed by
Madhan Neethiraj
7 years ago
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
Hide 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',
...
@@ -87,6 +87,7 @@ define(['require',
"mainClass"
:
"wizard-modal"
"mainClass"
:
"wizard-modal"
});
});
this
.
modal
.
open
();
this
.
modal
.
open
();
this
.
modal
.
$el
.
find
(
'button.ok'
).
attr
(
"disabled"
,
true
);
this
.
modal
.
on
(
'closeModal'
,
function
()
{
this
.
modal
.
on
(
'closeModal'
,
function
()
{
that
.
modal
.
trigger
(
'cancel'
);
that
.
modal
.
trigger
(
'cancel'
);
if
(
that
.
assignTermError
&&
that
.
hideLoader
)
{
if
(
that
.
assignTermError
&&
that
.
hideLoader
)
{
...
@@ -99,8 +100,13 @@ define(['require',
...
@@ -99,8 +100,13 @@ define(['require',
this
.
modal
.
on
(
'ok'
,
function
()
{
this
.
modal
.
on
(
'ok'
,
function
()
{
that
.
assignTerm
();
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
()
{
onRender
:
function
()
{
this
.
renderGlossaryTree
();
this
.
renderGlossaryTree
();
var
that
=
this
;
var
that
=
this
;
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/glossary/GlossaryLayoutView.js
View file @
c950c9bd
...
@@ -256,7 +256,11 @@ define(['require',
...
@@ -256,7 +256,11 @@ define(['require',
var
objGuid
=
options
.
objGuid
,
var
objGuid
=
options
.
objGuid
,
node
=
options
.
node
,
node
=
options
.
node
,
index
=
options
.
index
;
index
=
options
.
index
;
if
(
!
that
.
guid
)
{
if
(
that
.
isAssignView
)
{
return
{
'opened'
:
true
}
}
else
if
(
!
that
.
guid
)
{
that
.
query
[
that
.
viewType
].
isNodeNotFoundAtLoad
=
false
;
that
.
query
[
that
.
viewType
].
isNodeNotFoundAtLoad
=
false
;
var
selectedItem
=
{
var
selectedItem
=
{
"type"
:
"Glossary"
,
"type"
:
"Glossary"
,
...
@@ -461,6 +465,7 @@ define(['require',
...
@@ -461,6 +465,7 @@ define(['require',
.
on
(
"select_node.jstree"
,
function
(
e
,
data
)
{
.
on
(
"select_node.jstree"
,
function
(
e
,
data
)
{
if
(
that
.
isAssignView
)
{
if
(
that
.
isAssignView
)
{
that
.
glossary
.
selectedItem
=
data
.
node
.
original
;
that
.
glossary
.
selectedItem
=
data
.
node
.
original
;
that
.
glossaryCollection
.
trigger
(
"node_selected"
);
}
else
{
}
else
{
var
popoverClassName
=
(
type
==
"term"
?
'.termPopover'
:
'.categoryPopover'
),
var
popoverClassName
=
(
type
==
"term"
?
'.termPopover'
:
'.categoryPopover'
),
currentClickedPopoverEl
=
""
;
currentClickedPopoverEl
=
""
;
...
...
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