Skip to content

Commit

Permalink
Allow morphology perspectives in Cognate suggestions dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
vmonakhov committed Oct 12, 2023
1 parent 0a15837 commit 483bf07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/CognateAnalysisModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1604,6 +1604,7 @@ class CognateAnalysisModal extends React.Component {
let group_flag = false;
let text_flag = false;
const morphology = mode.includes("morphology");
const suggestions = mode.includes("suggestions");
let affix_flag = !morphology;
let meaning_flag = !morphology;

Expand All @@ -1619,11 +1620,11 @@ class CognateAnalysisModal extends React.Component {
}

if (field.english_translation === "Affix") {
affix_flag = morphology;
affix_flag = morphology || suggestions;
}

if (field.english_translation === "Meaning of affix") {
meaning_flag = morphology;
meaning_flag = morphology || suggestions;
}
}

Expand Down

0 comments on commit 483bf07

Please sign in to comment.