Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
fix(semester): hide the progress bar after submission
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Nov 15, 2022
1 parent f448cdc commit 462c084
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pages/semester/read.page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ const {
const hasSubmittedSemester = ref<boolean>(true)
function updateSemester() {
async function updateSemester() {
hasSubmittedSemester.value = false
fetcher.update(semester.value.data.id, {
await fetcher.update(semester.value.data.id, {
"deletedAt": null,
"endAt": semester.value.data.endAt.toJSON(),
"name": semester.value.data.name,
Expand All @@ -148,6 +148,7 @@ function updateSemester() {
fillSuccessMessages(receivedErrors, successMessages)
})
.catch(responseWithErrors => extractAllErrorDetails(responseWithErrors, receivedErrors))
hasSubmittedSemester.value = true
}
async function archiveSemester() {
Expand Down

0 comments on commit 462c084

Please sign in to comment.