Skip to content

Commit

Permalink
BİSMİLLAHİRRAHMANİRRAHİM
Browse files Browse the repository at this point in the history
loading is enabled for taking and releasing Parts
  • Loading branch information
Yusuf-YENICERI committed May 26, 2024
1 parent c32306c commit d7c4db9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/cuz/Cuzler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ const Question = ({ toggle }) => {
</DialogInputBox>

<NavBtnLink id={"takeButton"} onClick={async ()=>{
dispatch (loadingOverlayActions.toggleVisibility ());
setHideDialogBox(!hideDialogBox);
if(partIptal)
{
Expand All @@ -490,10 +491,12 @@ const Question = ({ toggle }) => {
// setTotalPartsTaken(database.countNumberOfCuzs(tempAllLanguages))
setTakePart(LanguageData["/cuz"].Button.Take)
setPartIptal(false);
dispatch (loadingOverlayActions.toggleVisibility ());
}else{

let result = await database.cuzAl(username, hatimNo, activeHatimSubKey, true, makeNewHatimState, true);
if(result.code == -1){
dispatch (loadingOverlayActions.toggleVisibility ());

toggleAlertVisibility();
dispatch(loggerActions.changeErrorKey(result.errorKey))
}else{
Expand All @@ -504,13 +507,14 @@ const Question = ({ toggle }) => {
localStorageCuzObj[activeHatimSubKey] = [];
localStorageCuzObj[activeHatimSubKey].push(hatimNo);
localStorage.setItem("cuz",JSON.stringify(localStorageCuzObj));

dispatch (loadingOverlayActions.toggleVisibility ());
// setTotalPartsTaken(database.countNumberOfCuzs(tempAllLanguages))
}
}




let altHatimResult = await database.altHatimGetir({altHatimKey: activeHatimSubKey})
if(altHatimResult.error == undefined){
setAllLanguage(prevState => {
Expand Down

0 comments on commit d7c4db9

Please sign in to comment.