Preserve courses with pending rooms and report precise graduate import errors
This commit is contained in:
@@ -103,7 +103,13 @@ class _UndergraduateAuthPageState extends State<UndergraduateAuthPage> {
|
||||
if (route?.isCurrent == true) Navigator.pop(context);
|
||||
messenger.showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(exams == null ? '课表已导入,请核对学期开始日。' : '考试信息已更新'),
|
||||
content: Text(
|
||||
exams != null
|
||||
? '考试信息已更新'
|
||||
: draft!.courses.any((c) => c.room == '教室待定')
|
||||
? '课表已导入,部分课程教室待定;请核对学期开始日。'
|
||||
: '课表已导入,请核对学期开始日。',
|
||||
),
|
||||
),
|
||||
);
|
||||
} else if (controller.lastError != null) {
|
||||
|
||||
Reference in New Issue
Block a user