Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
encyclopedia-gui
Commits
f755a651
Commit
f755a651
authored
Mar 01, 2019
by
Martin Kuban
Committed by
Markus Scheidgen
Apr 08, 2019
Browse files
fix for non-changed similar materials panel after navigation back to search page
parent
618dff00
Changes
2
Hide whitespace changes
Inline
Side-by-side
client/bundle.js
View file @
f755a651
This source diff could not be displayed because it is too large. You can
view the blob
instead.
client/src/material-mod/Overview.view.js
View file @
f755a651
...
...
@@ -321,14 +321,16 @@ class Overview {
'
space-group.value:
'
+
data
.
space_group_number
);
}
if
(
this
.
similarityFinder
){
this
.
similarityFinder
.
element
.
remove
()
}
if
(
data
.
similarity
)
{
if
(
!
this
.
similarityFinder
)
{
this
.
similarityFinder
=
new
SimilarityFinder
({
left
:
40
,
right
:
16
,
top
:
0
,
bottom
:
30
});
this
.
similarityFinder
=
new
SimilarityFinder
({
left
:
40
,
right
:
16
,
top
:
0
,
bottom
:
30
});
const
similarityFinderContainer
=
this
.
element
.
querySelector
(
'
.similarity-finder
'
);
this
.
similarityFinder
.
setSimilarityData
(
data
.
similarity
);
similarityFinderContainer
.
appendChild
(
this
.
similarityFinder
.
element
);
}
const
similarityFinderContainer
=
this
.
element
.
querySelector
(
'
.similarity-finder
'
);
this
.
similarityFinder
.
setSimilarityData
(
data
.
similarity
);
similarityFinderContainer
.
appendChild
(
this
.
similarityFinder
.
element
);
this
.
similartyDataField
=
this
.
element
.
querySelector
(
'
.similarity-data-field
'
);
InfoSys
.
addToInfoSystem
(
this
.
similartyDataField
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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