Skip to content

Commit cf7abc5

Browse files
authored
recorder: Remove confirmation before delete
The confirmation wasn’t showing on mobile so there was no way to delete a track. Switched back to the original delete immediately behavior.
1 parent 1ed5594 commit cf7abc5

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

apps/recorder/interface.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -829,13 +829,11 @@ <h2>Settings</h2>
829829

830830
switch(task) {
831831
case "delete":
832-
if (confirm(`Are you sure you want to delete Track ${trackid}?`)) {
833-
Util.showModal(`Deleting ${filename}...`);
834-
Util.eraseStorageFile(filename, () => {
835-
Util.hideModal();
836-
getTrackList();
837-
});
838-
}
832+
Util.showModal(`Deleting ${filename}...`);
833+
Util.eraseStorageFile(filename, () => {
834+
Util.hideModal();
835+
getTrackList();
836+
});
839837
break;
840838
case "downloadkml":
841839
downloadTrack(filename, track => saveKML(track, `Bangle.js Track ${trackid}`));
@@ -906,4 +904,4 @@ <h2>Settings</h2>
906904

907905
</script>
908906
</body>
909-
</html>
907+
</html>

0 commit comments

Comments
 (0)