Skip to content

Commit 50eb513

Browse files
committed
fix: ensure panel reset after archive deletion, editing, and successful uploads for consistent UI state
1 parent c77c464 commit 50eb513

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

frontend/src/views/Archive.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,7 @@ const deleteArchive = async (archive) => {
11461146
courseName: selectedSubject.value,
11471147
})
11481148
1149+
shouldResetPanels.value = true
11491150
await fetchArchives()
11501151
toast.add({
11511152
severity: 'success',
@@ -1257,6 +1258,7 @@ const handleEdit = async () => {
12571258
targetCategory: editForm.value.shouldTransfer ? editForm.value.targetCategory : null,
12581259
})
12591260
1261+
shouldResetPanels.value = true
12601262
await fetchArchives()
12611263
12621264
// If transfer was performed, refresh the course list to show the new course
@@ -1335,6 +1337,7 @@ async function handleUploadSuccess() {
13351337
})
13361338
13371339
await fetchCourses()
1340+
shouldResetPanels.value = true
13381341
if (selectedCourse.value) {
13391342
await fetchArchives()
13401343
}

0 commit comments

Comments
 (0)