Skip to content

Commit

Permalink
Merge pull request #1173 from nataliauvarova/kalmyk_markup
Browse files Browse the repository at this point in the history
kalmyk markup: fixes modal
  • Loading branch information
nataliauvarova authored Dec 19, 2024
2 parents 1d92f8a + bce3b48 commit 2c45f48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
3 changes: 3 additions & 0 deletions src/api/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ export const stringsToTranslate = [
"Loading linked perspective data",
"Loading locale data",
"Loading markup data",
"Loading markups and groups data",
"Loading metadata",
"Loading perspective data",
"Loading perspective selection",
Expand Down Expand Up @@ -871,6 +872,7 @@ export const stringsToTranslate = [
"Successfully created perspective.",
"Successfully deleted organization",
"Successfully removed",
"Such group already exists.",
"Suggested cognates",
"Suggested cognate groups",
"suggestions",
Expand Down Expand Up @@ -977,6 +979,7 @@ export const stringsToTranslate = [
"Voice",
"Vowel formant count threshold",
"Vulnerable",
"Warning",
"web",
"With field selection",
"Word file",
Expand Down
17 changes: 1 addition & 16 deletions src/components/JoinMarkupsModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const JoinMarkupsModal = ({ perspectiveId, onClose }) => {
for (const group of Object.values(groupDict)) {
const ids = group["markups"].map(markup => markup.id);
if (ids.includes(firstTextRelation) && ids.includes(secondTextRelation) && group.type === typeRelation) {
setWarnMessage("Such group already exists.");
setWarnMessage(getTranslation("Such group already exists."));
return;
}
}
Expand Down Expand Up @@ -216,21 +216,6 @@ const JoinMarkupsModal = ({ perspectiveId, onClose }) => {
setSelectedTotal(selectedTotal);
};

/*console.log("perspectiveId====");
console.log(perspectiveId);
console.log("onClose====");
console.log(onClose);
console.log("relations===");
console.log(relations);
console.log("joinActive===");
console.log(joinActive);
console.log("selectedRelations=====");
console.log(selectedRelations);*/

if (Object.keys(markupDict) < 2) {
return;
}
Expand Down

0 comments on commit 2c45f48

Please sign in to comment.