Skip to content

Commit

Permalink
base language and xlsx export for composite distance
Browse files Browse the repository at this point in the history
  • Loading branch information
vmonakhov committed Nov 8, 2024
1 parent e98e0e4 commit c17c426
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/CognateAnalysisModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ const computeComplexDistanceMutation = gql`
debug_flag: $debugFlag
) {
result
xlsx_url
minimum_spanning_tree
embedding_2d
embedding_3d
Expand Down Expand Up @@ -2979,7 +2980,15 @@ class CognateAnalysisModal extends React.Component {
) && this.state.result !== null && ! this.state.cleanResult && (
<Modal.Content style={{ maxWidth: "100%", overflowX: "auto" }}>

{ ! /complex_distance$/.test(mode) && (
{ /complex_distance$/.test(mode) && (
<div className="lingvo-cognate-results">
{ this.state.result.length > 0 && (
<div className="lingvo-cognate-text" style={{ marginLeft: "24px" }}>
<a href={this.state.xlsx_url}>{this.context("XLSX-exported analysis results")}</a>
</div>
)}
</div>
) || (
<>
<h3 className="lingvo-cognate-header-results">{this.context("Analysis results")}:</h3>

Expand Down

0 comments on commit c17c426

Please sign in to comment.