Skip to content

Commit

Permalink
reset isSaved status if the user chooses to leave despite the unsaved…
Browse files Browse the repository at this point in the history
… changes warning
  • Loading branch information
jdbocarsly committed Feb 20, 2024
1 parent 9354858 commit fbdc3d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/src/views/EditPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ export default {
next();
} else {
if (window.confirm("Unsaved changes present. Would you like to leave without saving?")) {
// if answer is "yes", then reset the saved warning and go to the new page
this.$store.commit("setItemSaved", { item_id: this.item_id, isSaved: true });
next();
} else {
next(false);
Expand Down

0 comments on commit fbdc3d2

Please sign in to comment.