From 05d3b54c8135d85f04f6275c4d78194634cd202c Mon Sep 17 00:00:00 2001 From: Jacob Pierce Date: Tue, 2 Jul 2024 16:46:56 -0700 Subject: [PATCH] hide errors about saving once save is successfull --- .../coach/assets/src/views/plan/CreateExamPage/index.vue | 1 + .../src/views/plan/assignments/AssignmentDetailsModal.vue | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/index.vue b/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/index.vue index d2569e877e9..812d06e8707 100644 --- a/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/index.vue +++ b/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/index.vue @@ -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({ diff --git a/kolibri/plugins/coach/assets/src/views/plan/assignments/AssignmentDetailsModal.vue b/kolibri/plugins/coach/assets/src/views/plan/assignments/AssignmentDetailsModal.vue index a2ce23de118..1b589ccd931 100644 --- a/kolibri/plugins/coach/assets/src/views/plan/assignments/AssignmentDetailsModal.vue +++ b/kolibri/plugins/coach/assets/src/views/plan/assignments/AssignmentDetailsModal.vue @@ -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; + }, }, };