chore: add loading indicator to course settings page (#4137)
This commit is contained in:
parent
fcd40ba40b
commit
68a9ec58ab
1 changed files with 4 additions and 0 deletions
|
|
@ -64,6 +64,10 @@ class CourseSettingsState extends State<CourseSettings>
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (controller.loading) {
|
||||
return const Center(child: CircularProgressIndicator.adaptive());
|
||||
}
|
||||
|
||||
if (controller.course == null || controller.error != null) {
|
||||
return room.canChangeStateEvent(PangeaEventTypes.coursePlan)
|
||||
? Column(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue