Skip to content

Commit

Permalink
hide errors about saving once save is successfull
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Jul 2, 2024
1 parent 476ee36 commit 05d3b54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@
saveQuizAndRedirect(close = true) {
this.saveQuiz()
.then(exam => {
this.$refs.detailsModal.handleSubmitSuccess();
this.$store.dispatch('createSnackbar', this.changesSavedSuccessfully$());
if (close) {
this.$router.replace({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,13 @@
// Scroll to the title field in case focus() didn't do that immediately
window.scrollTo({ top: 0, behavior: 'smooth' });
},
/**
* @public
*/
handleSubmitSuccess() {
this.showTitleError = false;
this.showServerError = false;
},
},
};
Expand Down

0 comments on commit 05d3b54

Please sign in to comment.