Skip to content

Commit b33be1d

Browse files
committed
Fixed auto-reload before delete bug. Delete Build? not working #32
1 parent 4da94b0 commit b33be1d

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

public/js/build.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,14 +502,13 @@ async function GetYourBuilds(uid) {
502502
${html}
503503
</tbody>
504504
</table>
505-
<p style="color: red">Deleting builds cannot be undone!!</p>
505+
<p style="color: red">Deleting builds cannot be undone!! (you might need to manually refresh the page)</p>
506506
`
507507
const deleteYourDocs = document.querySelectorAll('.delete-builds');
508508
deleteYourDocs.forEach(link => {
509509
link.addEventListener('click', (e) => {
510510
//console.log(link.getAttribute('bid'));
511511
deleteDoc(doc(db, "Age4Builds", link.getAttribute('bid')));
512-
location.reload();
513512
})
514513
});
515514
}

public/js/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,13 @@ async function GetYourBuilds(uid) {
188188
${html}
189189
</tbody>
190190
</table>
191-
<p style="color: red">Deleting builds cannot be undone!!</p>
191+
<p style="color: red">Deleting builds cannot be undone!! (you might need to manually refresh the page)</p>
192192
`
193193
const deleteYourDocs = document.querySelectorAll('.delete-builds');
194194
deleteYourDocs.forEach(link => {
195195
link.addEventListener('click', (e) => {
196196
//console.log(link.getAttribute('bid'));
197197
deleteDoc(doc(db, "Age4Builds", link.getAttribute('bid')));
198-
location.reload();
199198
})
200199
});
201200
}

public/js/view.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,14 +457,13 @@ async function GetYourBuilds(uid) {
457457
${html}
458458
</tbody>
459459
</table>
460-
<p style="color: red">Deleting builds cannot be undone!!</p>
460+
<p style="color: red">Deleting builds cannot be undone!! (you might need to manually refresh the page)</p>
461461
`
462462
const deleteYourDocs = document.querySelectorAll('.delete-builds');
463463
deleteYourDocs.forEach(link => {
464464
link.addEventListener('click', (e) => {
465465
//console.log(link.getAttribute('bid'));
466466
deleteDoc(doc(db, "Age4Builds", link.getAttribute('bid')));
467-
location.reload();
468467
})
469468
});
470469
}

0 commit comments

Comments
 (0)