feat: also refresh groups list in schedule

This commit is contained in:
2026-09-11 02:05:43 +03:00
parent a24748ec04
commit 019cf5da21
@@ -160,6 +160,9 @@ class ScheduleViewModel(
fun refresh() { fun refresh() {
val groupId = currentGroupId ?: return val groupId = currentGroupId ?: return
viewModelScope.launch { viewModelScope.launch {
_uiState.value = _uiState.value.copy(isLoading = true, loadError = false)
// Обновляем список групп: так подхватываются новые PDF (периоды), появившиеся на сайте.
runCatching { groupRepository.forceRefresh() }
loadSchedule(groupId) loadSchedule(groupId)
} }
} }