Skip to content

Commit bfd45f4

Browse files
Merge pull request #1200 from nataliauvarova/diff_oirats
Diff oirats
2 parents efa8ac9 + 1380335 commit bfd45f4

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

src/api/i18n.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ export const stringsToTranslate = [
494494
"Languages databases",
495495
"Last modified at",
496496
"left",
497+
" left",
497498
"left for now",
498499
"Left text",
499500
"Legend",
@@ -601,6 +602,8 @@ export const stringsToTranslate = [
601602
"Neuro cognate multi-language suggestions",
602603
"Neuro cognate suggestions",
603604
"Neuro cognates computation",
605+
"Neuro cognate multi-language suggestions (disabled, perspective is not published)",
606+
"Neuro cognate suggestions (disabled, perspective is not published)",
604607
"neuter",
605608
"New organization",
606609
"New password",
@@ -802,6 +805,7 @@ export const stringsToTranslate = [
802805
"result url",
803806
"Return to tree",
804807
"right",
808+
" right",
805809
"Right text",
806810
"Role",
807811
"Role data loading error, please contact adiministrators.",

src/components/CompareModal/index.js

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,9 @@ const GET_TWINS_XLSX = gql`
3737
const CompareModal = ({ columns, entries, onClose, perspectiveId }) => {
3838
const getTranslation = useContext(TranslationContext);
3939

40-
const colums_temp = columns.slice(2);
41-
40+
const colums_temp = columns.slice(1);
4241
columns = Object.assign([], colums_temp);
4342

44-
entries = entries.map((entry, i) => {
45-
let entry_temp = Object.assign({}, entry);
46-
47-
const entities_temp = entry_temp.entities.slice(2);
48-
49-
entry_temp.entities = Object.assign([], entities_temp);
50-
51-
entry = Object.assign({}, entry_temp);
52-
53-
return entry;
54-
});
55-
5643
let markedFalse = [];
5744
let markedTrue = [];
5845
columns.forEach((el, i) => {
@@ -339,10 +326,10 @@ const CompareModal = ({ columns, entries, onClose, perspectiveId }) => {
339326
}
340327
}
341328
if (dist > 0) {
342-
dist = String(dist) + " " + getTranslation("right");
329+
dist = String(dist) + getTranslation(" right");
343330
}
344331
if (dist < 0) {
345-
dist = String(-dist) + " " + getTranslation("left");
332+
dist = String(-dist) + getTranslation(" left");
346333
}
347334

348335
let diff = [];

src/components/CompareModal/styles.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,18 @@
4343

4444
.xlsx-link-label {
4545
float: left;
46-
margin-left: 20px;
46+
margin: 10px 0 0 16px;
4747
font-weight: bold;
4848
font-size: 1.2em;
4949
text-decoration-line: underline;
50+
color: #5d54cd;
51+
52+
&:hover {
53+
color: #5d54cd;
54+
text-decoration: underline;
55+
}
56+
57+
&:active {
58+
color: #372f9d;
59+
}
5060
}

src/components/CorporaView/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ class P extends React.Component {
561561
};
562562

563563
const onCompare = () => {
564-
openNewModal(CompareModal, { perspectiveId: id, columns: fields, entries: entries });
564+
openNewModal(CompareModal, { perspectiveId: id, columns: fieldsText, entries: entries });
565565
};
566566

567567
/* Basic case-insensitive, case-sensitive compare. */

0 commit comments

Comments
 (0)