Commit f755a651 authored by Martin Kuban's avatar Martin Kuban Committed by Markus Scheidgen
Browse files

fix for non-changed similar materials panel after navigation back to search page

parent 618dff00
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment