Skip to content

Commit 4a2752e

Browse files
Merge pull request #48 from ispras/diff_oirats
Diff oirats
2 parents 23b9310 + efa8ac9 commit 4a2752e

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

src/components/CognateAnalysisModal/index.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1834,7 +1834,6 @@ class CognateAnalysisModal extends React.Component {
18341834
const morphology = mode.includes("morphology");
18351835
const suggestions = mode.includes("suggestions");
18361836
let affix_flag = !morphology;
1837-
let meaning_flag = !morphology;
18381837

18391838
for (const column of perspective.columns) {
18401839
const field = this.fieldDict[id2str(column.field_id)];
@@ -1847,25 +1846,26 @@ class CognateAnalysisModal extends React.Component {
18471846
text_flag = true;
18481847
}
18491848

1850-
if (Object.values(field.translations).some(t =>
1851-
t.toLowerCase().includes("affix") ||
1852-
t.toLowerCase().includes("аффикс") ||
1853-
t.toLowerCase().includes("morph") ||
1854-
t.toLowerCase().includes("морф"))) {
1855-
affix_flag = morphology || suggestions;
1856-
meaning_flag = morphology || suggestions;
1849+
if (morphology &&
1850+
Object.values(field.translations).some(t =>
1851+
t.toLowerCase().includes("affix") ||
1852+
t.toLowerCase().includes("аффикс") ||
1853+
t.toLowerCase().includes("morph") ||
1854+
t.toLowerCase().includes("морф"))) {
1855+
affix_flag = true;
18571856
}
18581857

1859-
/*
1860-
if (Object.values(field.translations).some(t =>
1861-
t.toLowerCase().includes("meaning") ||
1862-
t.toLowerCase().includes("значение"))) {
1863-
meaning_flag = morphology || suggestions;
1858+
// Skipping dictionaries for non-morphology mode
1859+
// if we met 'affix' word in field name
1860+
if (!morphology &&
1861+
Object.values(field.translations).some(t =>
1862+
t.toLowerCase().includes("affix") ||
1863+
t.toLowerCase().includes("аффикс"))) {
1864+
affix_flag = false;
18641865
}
1865-
*/
18661866
}
18671867

1868-
if (group_flag && text_flag && affix_flag && meaning_flag) {
1868+
if (group_flag && text_flag && affix_flag) {
18691869
this.available_list.push([treePathList.concat([dictionary, perspective]), perspective]);
18701870
}
18711871
}

src/styles/main.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4519,7 +4519,7 @@ body {
45194519
background-color: #ffd700;
45204520

45214521
&.lingvo-marker-yellow_light {
4522-
background-color: #fff8ce !important;
4522+
background-color: #ffeecc !important;
45234523
}
45244524
}
45254525
}
@@ -4555,7 +4555,7 @@ body {
45554555

45564556
&.lingvo-marker-yellow_light {
45574557
&.marked-replace-hover {
4558-
background-color: #fff8ce !important;
4558+
background-color: #ffeecc !important;
45594559
}
45604560
}
45614561
}

0 commit comments

Comments
 (0)