Preserve courses with pending rooms and report precise graduate import errors
This commit is contained in:
@@ -43,6 +43,11 @@ class _ImportPreviewState extends State<ImportPreview> {
|
||||
style: const TextStyle(color: river),
|
||||
),
|
||||
if (draft.semesterLabel != null) Text('学期:${draft.semesterLabel}'),
|
||||
if (draft.courses.any((course) => course.room == '教室待定'))
|
||||
const Padding(
|
||||
padding: EdgeInsets.only(top: 8),
|
||||
child: Text('部分课程学校未提供教室,已标为“教室待定”;请以学校最新安排为准。'),
|
||||
),
|
||||
if (widget.controller.snapshot.courses.isNotEmpty &&
|
||||
widget.controller.snapshot.schoolTerm != draft.schoolTerm &&
|
||||
draft.schoolTerm != null)
|
||||
|
||||
Reference in New Issue
Block a user