Skip to content

Commit

Permalink
no conflict notification and checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sijumoncy committed Apr 30, 2024
1 parent 999bb24 commit 0639043
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import updateTranslationSB from '@/core/burrito/updateTranslationSB';
import packageInfo from '../../../../package.json';
import { commitChanges } from '../Sync/Isomorphic/utils';

export const mergeTextTranslationProject = async (incomingPath, currentUser, setConflictPopup, setProcessMerge, incomingMeta) => {
export const mergeTextTranslationProject = async (incomingPath, currentUser, setConflictPopup, setProcessMerge, incomingMeta, triggerSnackBar) => {
try {
// update the metadata of current md5 --- updateTranslationSB (src/core/burrito/)
const fse = window.require('fs-extra');
Expand Down Expand Up @@ -88,8 +88,8 @@ export const mergeTextTranslationProject = async (incomingPath, currentUser, set
});
} else {
setProcessMerge(false);
triggerSnackBar('success', 'No Conflict Found');
console.log('No Conflict =================>');

Check warning on line 92 in renderer/src/components/TextTranslationMerge/mergeTextTranslationProject.js

View workflow job for this annotation

GitHub Actions / Lint Run

Unexpected console statement
return 'noConflict';
}

setProcessMerge(false);
Expand Down
5 changes: 1 addition & 4 deletions renderer/src/layouts/projects/ImportProjectPopUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,7 @@ export default function ImportProjectPopUp(props) {
}else if (sbData?.burritoType === 'scripture / textTranslation') {
console.log("Started Indentify Merge conflicts ------");
try {
const response = await mergeTextTranslationProject(folderPath, currentUser, setConflictPopup, setProcessMerge, sbData)
if(response === "noConflict") {
triggerSnackBar('success', "No Conflict Found",)
}
await mergeTextTranslationProject(folderPath, currentUser, setConflictPopup, setProcessMerge, sbData, triggerSnackBar)
console.log("completed merge idenitfy process ------");
} catch(err) {

Expand Down

0 comments on commit 0639043

Please sign in to comment.